From 0257f17c81d203553b5e04e958656ff1018a2230 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 4 Mar 2015 14:23:18 +0000 Subject: [PATCH] Fix scrolling issue happens in FF when scrolling over selectbox items located in sidebox(e.g. selectboxes in calendar sidebox menu) --- phpgwapi/js/framework/fw_ui.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/phpgwapi/js/framework/fw_ui.js b/phpgwapi/js/framework/fw_ui.js index c663582007..bc3d88e68e 100644 --- a/phpgwapi/js/framework/fw_ui.js +++ b/phpgwapi/js/framework/fw_ui.js @@ -849,7 +849,10 @@ function egw_fw_ui_scrollarea(_contDiv) //Mousewheel handler var self = this; $j(this.scrollDiv).mousewheel(function(e, delta) { - if (delta) + // Do not scrolldown/up when we are on selectbox items + // seems Firefox does not prevent the mousewheel event over + // selectbox items with scrollbars + if (delta && e.target.tagName != "OPTION") { self.scrollDelta(- delta * 30); if (self.contHeight != this.scrollHeight) self.update();