From e2909b4648143b7c8c0427482e3c27252dfd9118 Mon Sep 17 00:00:00 2001 From: mimafogeus2 Date: Fri, 10 Nov 2017 15:46:49 +0200 Subject: [PATCH] BUGFIX: No group info returned to mouse events when cursorY == group top (#3652) When the mouse was over a group-label's very top pixels, no group id was returned in mouse events. This was due to checking if the cursor's Y coordinate is higher than the group element's top position, and not equal or higher. --- lib/timeline/component/ItemSet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeline/component/ItemSet.js b/lib/timeline/component/ItemSet.js index 9e683e55..ca3d4005 100644 --- a/lib/timeline/component/ItemSet.js +++ b/lib/timeline/component/ItemSet.js @@ -2317,7 +2317,7 @@ ItemSet.prototype.groupFromTarget = function(event) { var group = this.groups[groupId]; var foreground = group.dom.foreground; var top = util.getAbsoluteTop(foreground); - if (clientY > top && clientY < top + foreground.offsetHeight) { + if (clientY >= top && clientY < top + foreground.offsetHeight) { return group; }