mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -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
|
// Get the view from the event, and store a reference to the view that
|
||||||
// should receive keyboard input.
|
// should receive keyboard input.
|
||||||
var view = View._focused = getView(event);
|
var view = View._focused = getView(event);
|
||||||
dragging = true;
|
if (!dragging) {
|
||||||
view._handleEvent('mousedown', event);
|
dragging = true;
|
||||||
|
view._handleEvent('mousedown', event);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
docEvents[mousemove] = function(event) {
|
docEvents[mousemove] = function(event) {
|
||||||
|
|
Loading…
Reference in a new issue