mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(scrollView): on desktop, mousewheel only scrolls the right scrollView
Closes #1376
This commit is contained in:
2
js/angular/directive/content.js
vendored
2
js/angular/directive/content.js
vendored
@@ -47,7 +47,7 @@ function($timeout, $controller, $ionicBind) {
|
||||
compile: function(element, attr) {
|
||||
var innerElement;
|
||||
|
||||
element.addClass('scroll-content');
|
||||
element.addClass('scroll-content ionic-scroll');
|
||||
|
||||
if (attr.scroll != 'false') {
|
||||
//We cannot use normal transclude here because it breaks element.data()
|
||||
|
||||
2
js/angular/directive/scroll.js
vendored
2
js/angular/directive/scroll.js
vendored
@@ -31,7 +31,7 @@ function($timeout, $controller, $ionicBind) {
|
||||
scope: true,
|
||||
controller: function() {},
|
||||
compile: function(element, attr) {
|
||||
element.addClass('scroll-view');
|
||||
element.addClass('scroll-view ionic-scroll');
|
||||
|
||||
//We cannot transclude here because it breaks element.data() inheritance on compile
|
||||
var innerElement = jqLite('<div class="scroll"></div>');
|
||||
|
||||
Reference in New Issue
Block a user