Adam Shaw 10 vuotta sitten
vanhempi
sitoutus
f6bb303d0d
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/common/DragListener.js

+ 2 - 2
src/common/DragListener.js

@@ -71,7 +71,7 @@ var DragListener = FC.DragListener = Class.extend(ListenerMixin, {
 			this.originY = getEvY(ev);
 			this.originY = getEvY(ev);
 			this.scrollEl = getScrollParent($(ev.target));
 			this.scrollEl = getScrollParent($(ev.target));
 
 
-			this.bindHandlers(isTouch);
+			this.bindHandlers();
 			this.initAutoScroll();
 			this.initAutoScroll();
 			this.handleInteractionStart(ev);
 			this.handleInteractionStart(ev);
 			this.startDelay(ev);
 			this.startDelay(ev);
@@ -117,7 +117,7 @@ var DragListener = FC.DragListener = Class.extend(ListenerMixin, {
 
 
 	bindHandlers: function(isTouch) {
 	bindHandlers: function(isTouch) {
 
 
-		if (isTouch) {
+		if (this.isTouch) {
 			this.listenTo($(document), {
 			this.listenTo($(document), {
 				touchmove: this.handleTouchMove,
 				touchmove: this.handleTouchMove,
 				touchend: this.endInteraction,
 				touchend: this.endInteraction,