Fix scrolling issue happens in FF when scrolling over selectbox items located in sidebox(e.g. selectboxes in calendar sidebox menu)

This commit is contained in:
Hadi Nategh 2015-03-04 14:23:52 +00:00
parent 3d956ad410
commit 3001226b9c

View File

@ -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();