From 88338c2c8cd3e65c471f4ddd7ed692497658a34a Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 20 Apr 2016 17:25:06 +0000 Subject: [PATCH] Stop little scrolling when mouseover week label or header with long (ends 21:00+) days --- calendar/js/et2_widget_timegrid.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/calendar/js/et2_widget_timegrid.js b/calendar/js/et2_widget_timegrid.js index c4c348df22..c15f751397 100644 --- a/calendar/js/et2_widget_timegrid.js +++ b/calendar/js/et2_widget_timegrid.js @@ -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);