Jelajahi Sumber

was overaggressive with killing touch interaction via mouse events

Adam Shaw 9 tahun lalu
induk
melakukan
c821b44828
1 mengubah file dengan 0 tambahan dan 12 penghapusan
  1. 0 12
      src/common/GlobalEmitter.js

+ 0 - 12
src/common/GlobalEmitter.js

@@ -113,36 +113,24 @@ var GlobalEmitter = Class.extend(ListenerMixin, EmitterMixin, {
 		if (!this.shouldIgnoreMouse()) {
 			this.trigger('mousedown', ev);
 		}
-		else {
-			this.stopTouch(ev); // kill touch interaction if touchend neglected to fire
-		}
 	},
 
 	handleMouseMove: function(ev) {
 		if (!this.shouldIgnoreMouse()) {
 			this.trigger('mousemove', ev);
 		}
-		else {
-			this.stopTouch(ev); // kill touch interaction if touchend neglected to fire
-		}
 	},
 
 	handleMouseUp: function(ev) {
 		if (!this.shouldIgnoreMouse()) {
 			this.trigger('mouseup', ev);
 		}
-		else {
-			this.stopTouch(ev); // kill touch interaction if touchend neglected to fire
-		}
 	},
 
 	handleClick: function(ev) {
 		if (!this.shouldIgnoreMouse()) {
 			this.trigger('click', ev);
 		}
-		else {
-			this.stopTouch(ev); // kill touch interaction if touchend neglected to fire
-		}
 	},