|
|
@ -2233,8 +2233,16 @@ ItemSet.prototype.itemFromRelatedTarget = function(event) { |
|
|
|
*/ |
|
|
|
ItemSet.prototype.groupFromTarget = function(event) { |
|
|
|
var clientY = event.center ? event.center.y : event.clientY; |
|
|
|
for (var i = 0; i < this.groupIds.length; i++) { |
|
|
|
var groupId = this.groupIds[i]; |
|
|
|
var groupIds = this.groupIds; |
|
|
|
|
|
|
|
if (groupIds.length <= 0) { |
|
|
|
groupIds = this.groupsData.getIds({ |
|
|
|
order: this.options.groupOrder |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
for (var i = 0; i < groupIds.length; i++) { |
|
|
|
var groupId = groupIds[i]; |
|
|
|
var group = this.groups[groupId]; |
|
|
|
var foreground = group.dom.foreground; |
|
|
|
var top = util.getAbsoluteTop(foreground); |
|
|
|