Browse Source

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.
develop
mimafogeus2 6 years ago
committed by Yotam Berkowitz
parent
commit
e2909b4648
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/timeline/component/ItemSet.js

+ 1
- 1
lib/timeline/component/ItemSet.js View File

@ -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;
}

Loading…
Cancel
Save