From 52017340d2b005bc2afd7a0243aa17e3e755757c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 27 Jan 2016 09:53:09 +0100 Subject: [PATCH] Do not fire two subsequent mousedown events. This should fix #922, but needs testing. --- src/view/View.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/view/View.js b/src/view/View.js index 2cddfdf8..3ca4dceb 100644 --- a/src/view/View.js +++ b/src/view/View.js @@ -887,8 +887,10 @@ new function() { // Injection scope for mouse events on the browser // Get the view from the event, and store a reference to the view that // should receive keyboard input. var view = View._focused = getView(event); - dragging = true; - view._handleEvent('mousedown', event); + if (!dragging) { + dragging = true; + view._handleEvent('mousedown', event); + } }; docEvents[mousemove] = function(event) {