in src/main/jbake/assets/js/tree.jquery.js [172:192]
DragAndDropHandler.prototype.findHoveredArea = function(x, y) {
var area, dimensions, high, low, mid;
dimensions = this.getTreeDimensions();
if (x < dimensions.left || y < dimensions.top || x > dimensions.right || y > dimensions.bottom) {
return null;
}
low = 0;
high = this.hit_areas.length;
while (low < high) {
mid = (low + high) >> 1;
area = this.hit_areas[mid];
if (y < area.top) {
high = mid;
} else if (y > area.bottom) {
low = mid + 1;
} else {
return area;
}
}
return null;
};