mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
parent
188c006197
commit
fbd5eeb7ef
1 changed files with 3 additions and 4 deletions
|
@ -1271,12 +1271,11 @@ new function() { // Injection scope for event handling on the browser
|
||||||
point, prevPoint)
|
point, prevPoint)
|
||||||
// Next handle the hit-item, if it's different from the drag-item
|
// Next handle the hit-item, if it's different from the drag-item
|
||||||
// and not a descendant of it (in which case it would already have
|
// and not a descendant of it (in which case it would already have
|
||||||
// received an event in the call above). Use fallbacks to translate
|
// received an event in the call above).
|
||||||
// mousedrag to mousemove, since drag is handled above.
|
|
||||||
|| hitItem && hitItem !== dragItem
|
|| hitItem && hitItem !== dragItem
|
||||||
&& !hitItem.isDescendant(dragItem)
|
&& !hitItem.isDescendant(dragItem)
|
||||||
&& emitMouseEvent(hitItem, null, fallbacks[type] || type, event,
|
&& emitMouseEvent(hitItem, null, type, event, point, prevPoint,
|
||||||
point, prevPoint, dragItem)
|
dragItem)
|
||||||
// Lastly handle the mouse events on the view, if we're still here.
|
// Lastly handle the mouse events on the view, if we're still here.
|
||||||
|| emitMouseEvent(view, dragItem || hitItem || view, type, event,
|
|| emitMouseEvent(view, dragItem || hitItem || view, type, event,
|
||||||
point, prevPoint));
|
point, prevPoint));
|
||||||
|
|
Loading…
Reference in a new issue