From 5ce9a080db640db177b4129e5750e52d9960e7da Mon Sep 17 00:00:00 2001 From: Evert Bouw Date: Wed, 13 Apr 2016 14:39:00 +0200 Subject: [PATCH] Removed Firefox specific mousemove event listener Dropping files doesn't work in Firefox 45 when dropping while dragging, doesn't work at all in Firefox 47. --- src/HTML5Backend.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/HTML5Backend.js b/src/HTML5Backend.js index d02cde5..6e5bb86 100644 --- a/src/HTML5Backend.js +++ b/src/HTML5Backend.js @@ -181,12 +181,6 @@ export default class HTML5Backend { this.currentNativeSource = new SourceType(); this.currentNativeHandle = this.registry.addSource(type, this.currentNativeSource); this.actions.beginDrag([this.currentNativeHandle]); - - // On Firefox, if mousemove fires, the drag is over but browser failed to tell us. - // This is not true for other browsers. - if (isFirefox()) { - this.window.addEventListener('mousemove', this.endDragNativeItem, true); - } } endDragNativeItem() { @@ -194,10 +188,6 @@ export default class HTML5Backend { return; } - if (isFirefox()) { - this.window.removeEventListener('mousemove', this.endDragNativeItem, true); - } - this.actions.endDrag(); this.registry.removeSource(this.currentNativeHandle); this.currentNativeHandle = null;