From: jzaefferer Date: Tue, 26 Oct 2010 08:54:28 +0000 (+0200) Subject: Slider: Simplifying mousewheel binding, remove Opera workaround X-Git-Tag: 1.9m3~1^2~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e442dd352895b5e7c605d6baeb825a954db4b6af;p=jquery-ui.git Slider: Simplifying mousewheel binding, remove Opera workaround --- diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js index c13fe9407..2c2da22d1 100644 --- a/ui/jquery.ui.spinner.js +++ b/ui/jquery.ui.spinner.js @@ -224,11 +224,8 @@ $.widget('ui.spinner', { return true; }, _mousewheel: function() { - if (!$.fn.mousewheel) - return; var self = this; - this.element.mousewheel(function(event, delta) { - delta = ($.browser.opera ? -delta / Math.abs(delta) : delta); + this.element.bind("mousewheel", function(event, delta) { if (!self._start(event)) { return false; }