1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-26 10:52:17 -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', []);
ngModule.directive('ngIscroll', function($parse) {
ngModule.directive('ngIscroll', function() {
return {
link: function(scope, elm, attrs) {
var model = $parse(attrs.ngIscroll);
var model = attrs.ngIscroll;
scope.$watch(model, function() {
var myScroll;
// activate iscroll
myScroll = new IScroll(elm[0], {
mouseWheel: true
});
});
}, true);
}
};
});