Do not fire two subsequent mousedown events.

This should fix #922, but needs testing.
This commit is contained in:
Jürg Lehni 2016-01-27 09:53:09 +01:00
parent caa93a51ca
commit 52017340d2

View file

@ -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) {