From e442dd352895b5e7c605d6baeb825a954db4b6af Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Tue, 26 Oct 2010 10:54:28 +0200 Subject: [PATCH] Slider: Simplifying mousewheel binding, remove Opera workaround --- ui/jquery.ui.spinner.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; } -- 2.39.5