From 1a4bcebdcfb81ca6391d277907cd59331abc070a Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 21 Jan 2016 15:58:21 +0000 Subject: [PATCH] Avoid scrolling in long hidden event list triggering change in date span --- calendar/js/et2_widget_daycol.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/calendar/js/et2_widget_daycol.js b/calendar/js/et2_widget_daycol.js index d456068fb8..afdb49a11d 100644 --- a/calendar/js/et2_widget_daycol.js +++ b/calendar/js/et2_widget_daycol.js @@ -664,6 +664,13 @@ var et2_calendar_daycol = et2_valueWidget.extend([et2_IDetachedDOM, et2_IResizea // Better re-run this to clean up day._out_of_view(); return false; + }) + .on('wheel', function(e) + { + // Avoid bubbling & triggering change in date span + e.stopPropagation(); + // IE? + e.cancelBubble; }); } var count = parseInt(indicator.attr('data-hidden_count')) + 1