Stop little scrolling when mouseover week label or header with long (ends 21:00+) days

This commit is contained in:
Nathan Gray 2016-04-20 17:25:06 +00:00
parent 80e935fb0b
commit 88338c2c8c

View File

@ -1700,6 +1700,12 @@ var et2_calendar_timegrid = (function(){ "use strict"; return et2_calendar_view.
}
var node = document.elementFromPoint(x,y);
// Ignore high level & non-time (grid itself, header parent & week label)
if([this.node, this.gridHeader[0], this._labelContainer[0]].indexOf(node) !== -1)
{
return [];
}
while(node && node != this.node && node.tagName != 'BODY' && path.length < 10)
{
path.push(node);