mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Do not fire two subsequent mousedown events.
This should fix #922, but needs testing.
This commit is contained in:
parent
caa93a51ca
commit
52017340d2
1 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue