|
|
@ -15622,14 +15622,8 @@ BI.PopupView = BI.inherit(BI.Widget, { |
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
|
BI.PopupView.superclass._init.apply(this, arguments); |
|
|
|
BI.PopupView.superclass._init.apply(this, arguments); |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
this.wheelHandler = new BI.WheelHandler(function (deltaX, deltaY) { |
|
|
|
|
|
|
|
var scrollTop = self.button_group.element.scrollTop(); |
|
|
|
|
|
|
|
scrollTop += deltaY; |
|
|
|
|
|
|
|
self.button_group.element.scrollTop(scrollTop); |
|
|
|
|
|
|
|
}, false, true); |
|
|
|
|
|
|
|
var fn = function (e) { |
|
|
|
var fn = function (e) { |
|
|
|
self.wheelHandler.onWheel(e.originalEvent); |
|
|
|
e.stopPropagation(); |
|
|
|
e.stopEvent(); |
|
|
|
|
|
|
|
}, stop = function (e) { |
|
|
|
}, stop = function (e) { |
|
|
|
e.stopEvent(); |
|
|
|
e.stopEvent(); |
|
|
|
return false; |
|
|
|
return false; |
|
|
@ -15640,7 +15634,7 @@ BI.PopupView = BI.inherit(BI.Widget, { |
|
|
|
"max-width": o.maxWidth + "px" |
|
|
|
"max-width": o.maxWidth + "px" |
|
|
|
}).bind({click: fn}); |
|
|
|
}).bind({click: fn}); |
|
|
|
|
|
|
|
|
|
|
|
this.element.bind("mousewheel", BI.bind(fn, this)); |
|
|
|
this.element.bind("mousewheel", fn); |
|
|
|
|
|
|
|
|
|
|
|
o.stopPropagation && this.element.bind({mousedown: fn, mouseup: fn, mouseover: fn}); |
|
|
|
o.stopPropagation && this.element.bind({mousedown: fn, mouseup: fn, mouseover: fn}); |
|
|
|
o.stopEvent && this.element.bind({mousedown: stop, mouseup: stop, mouseover: stop}); |
|
|
|
o.stopEvent && this.element.bind({mousedown: stop, mouseup: stop, mouseover: stop}); |
|
|
|