```
+### Other attributes
+Use dragScrollExcludedClasses to exclude drag scrolling for elements having certain classes. Class names should be separated using comma.
+```html
+
+```
## Credits / Inspiration
* https://github.com/asvd/dragscroll
diff --git a/src/ng-drag-scroll.js b/src/ng-drag-scroll.js
index 71fa49c..3ce7dbb 100644
--- a/src/ng-drag-scroll.js
+++ b/src/ng-drag-scroll.js
@@ -13,7 +13,7 @@
//
Lorem ipsum dolor sit amet
var directive = {
restrict: 'A',
- link: function($scope, $element, $attributes, vm) {
+ link: function($scope, $element, $attributes) {
var enabled = true;
var allowedClickOffset = 5;
var pushed = false;
@@ -30,12 +30,6 @@
enabled = newValue !== undefined ? newValue : true;
});
- // Set event listeners
- $element.on('mousedown', handleMouseDown);
-
- // Set destroy listener
- $scope.$on('$destroy', destroy);
-
/**
* Sets the event listeners for the mouseup and mousedown events
*/
@@ -60,7 +54,7 @@
if(enabled){
for (var i= 0; i