aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-10-26 10:54:28 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-10-26 10:54:28 +0200
commite442dd352895b5e7c605d6baeb825a954db4b6af (patch)
tree896414d367571eb0b0197eaaa4ab0122f620a1b3
parent0a1da016ffc5081ad1124aa74af778053d58ecb2 (diff)
downloadjquery-ui-e442dd352895b5e7c605d6baeb825a954db4b6af.tar.gz
jquery-ui-e442dd352895b5e7c605d6baeb825a954db4b6af.zip
Slider: Simplifying mousewheel binding, remove Opera workaround
-rw-r--r--ui/jquery.ui.spinner.js5
1 files changed, 1 insertions, 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;
}