mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Only start dragging if none of the mosedown events have stopped propagation.
This commit is contained in:
parent
45f9fcd830
commit
f003cc05d7
1 changed files with 3 additions and 1 deletions
|
@ -171,7 +171,9 @@ var CanvasView = View.extend(/** @lends CanvasView# */{
|
|||
dblClick = lastItem == item && (Date.now() - clickTime < 300);
|
||||
downItem = lastItem = item;
|
||||
downPoint = lastPoint = overPoint = point;
|
||||
dragItem = downItem;
|
||||
// Only start dragging if none of the mosedown events have
|
||||
// stopped propagation.
|
||||
dragItem = !stopped && item;
|
||||
// Find the first item pu the chain that responds to drag.
|
||||
// NOTE: Drag event don't bubble
|
||||
while (dragItem && !dragItem.responds('mousedrag'))
|
||||
|
|
Loading…
Reference in a new issue