]> source.dussan.org Git - jquery-ui.git/commitdiff
Slider: Simplifying mousewheel binding, remove Opera workaround
authorjzaefferer <joern.zaefferer@gmail.com>
Tue, 26 Oct 2010 08:54:28 +0000 (10:54 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Tue, 26 Oct 2010 08:54:28 +0000 (10:54 +0200)
ui/jquery.ui.spinner.js

index c13fe940742489c69e0145c899707b6d170bdb1f..2c2da22d1c83653c6e2f256e3ef4bf60ace35dd7 100644 (file)
@@ -224,11 +224,8 @@ $.widget('ui.spinner', {
                return true;\r
        },\r
        _mousewheel: function() {\r
-               if (!$.fn.mousewheel)\r
-                       return;\r
                var self = this;\r
-               this.element.mousewheel(function(event, delta) {\r
-                       delta = ($.browser.opera ? -delta / Math.abs(delta) : delta);\r
+               this.element.bind("mousewheel", function(event, delta) {\r
                        if (!self._start(event)) {\r
                                return false;\r
                        }\r