1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-23 01:12:19 -05:00

fix scrolling

This commit is contained in:
Tankred Hase 2013-12-03 21:07:28 +01:00
parent d23bdbc172
commit 8e0d0ff4fd

View File

@ -311,17 +311,17 @@ define(function(require) {
// //
var ngModule = angular.module('mail-list', []); var ngModule = angular.module('mail-list', []);
ngModule.directive('ngIscroll', function($parse) { ngModule.directive('ngIscroll', function() {
return { return {
link: function(scope, elm, attrs) { link: function(scope, elm, attrs) {
var model = $parse(attrs.ngIscroll); var model = attrs.ngIscroll;
scope.$watch(model, function() { scope.$watch(model, function() {
var myScroll; var myScroll;
// activate iscroll // activate iscroll
myScroll = new IScroll(elm[0], { myScroll = new IScroll(elm[0], {
mouseWheel: true mouseWheel: true
}); });
}); }, true);
} }
}; };
}); });