From fbd5eeb7ef12fe5f30565dd2b9fcdac3631c1e54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 22 Apr 2017 20:01:08 +0200 Subject: [PATCH] Mouse Events: Fix item-based doubleclick events. Closes #1316 --- src/view/View.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/view/View.js b/src/view/View.js index 20a5c430..39e896da 100644 --- a/src/view/View.js +++ b/src/view/View.js @@ -1271,12 +1271,11 @@ new function() { // Injection scope for event handling on the browser point, prevPoint) // 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 - // received an event in the call above). Use fallbacks to translate - // mousedrag to mousemove, since drag is handled above. + // received an event in the call above). || hitItem && hitItem !== dragItem && !hitItem.isDescendant(dragItem) - && emitMouseEvent(hitItem, null, fallbacks[type] || type, event, - point, prevPoint, dragItem) + && emitMouseEvent(hitItem, null, type, event, point, prevPoint, + dragItem) // Lastly handle the mouse events on the view, if we're still here. || emitMouseEvent(view, dragItem || hitItem || view, type, event, point, prevPoint));