diff --git a/src/angular-perfect-scrollbar.js b/src/angular-perfect-scrollbar.js index 8befa72..31f8184 100644 --- a/src/angular-perfect-scrollbar.js +++ b/src/angular-perfect-scrollbar.js @@ -24,7 +24,7 @@ angular ]; return { - restrict: 'EA', + restrict: 'E', transclude: true, template: '
', replace: true, diff --git a/src/angular-perfect-scrollbar.min.js b/src/angular-perfect-scrollbar.min.js index bfd55ce..b034cd5 100644 --- a/src/angular-perfect-scrollbar.min.js +++ b/src/angular-perfect-scrollbar.min.js @@ -1 +1 @@ -angular.module("perfect_scrollbar",[]).directive("perfectScrollbar",["$parse","$window",function($parse,$window){var psOptions=["handlers","wheelSpeed","wheelPropagation","swipeEasing","minScrollbarLength","maxScrollbarLength","scrollingThreshold","useBothWheelAxes","suppressScrollX","suppressScrollY","scrollXMarginOffset","scrollYMarginOffset"];return{restrict:"EA",transclude:!0,template:"
",replace:!0,link:function($scope,$elem,$attr){function update(event){$scope.$evalAsync(function(){"true"==$attr.scrollDown&&"mouseenter"!=event&&setTimeout(function(){$elem[0].scrollTop=$elem.prop("scrollHeight")},100),perfect.update()})}for(var perfect,jqWindow=angular.element($window),options={},i=0,l=psOptions.length;i
",replace:!0,link:function($scope,$elem,$attr){function update(event){$scope.$evalAsync(function(){"true"==$attr.scrollDown&&"mouseenter"!=event&&setTimeout(function(){$elem[0].scrollTop=$elem.prop("scrollHeight")},100),perfect.update()})}for(var perfect,jqWindow=angular.element($window),options={},i=0,l=psOptions.length;i