Skip to content

Commit fbd5eeb

Browse files
committed
Mouse Events: Fix item-based doubleclick events.
Closes #1316
1 parent 188c006 commit fbd5eeb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/view/View.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,12 +1271,11 @@ new function() { // Injection scope for event handling on the browser
12711271
point, prevPoint)
12721272
// Next handle the hit-item, if it's different from the drag-item
12731273
// and not a descendant of it (in which case it would already have
1274-
// received an event in the call above). Use fallbacks to translate
1275-
// mousedrag to mousemove, since drag is handled above.
1274+
// received an event in the call above).
12761275
|| hitItem && hitItem !== dragItem
12771276
&& !hitItem.isDescendant(dragItem)
1278-
&& emitMouseEvent(hitItem, null, fallbacks[type] || type, event,
1279-
point, prevPoint, dragItem)
1277+
&& emitMouseEvent(hitItem, null, type, event, point, prevPoint,
1278+
dragItem)
12801279
// Lastly handle the mouse events on the view, if we're still here.
12811280
|| emitMouseEvent(view, dragItem || hitItem || view, type, event,
12821281
point, prevPoint));

0 commit comments

Comments
 (0)