aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.spinner.js
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2011-02-26 12:10:52 +0100
committerjzaefferer <joern.zaefferer@gmail.com>2011-02-26 12:10:52 +0100
commit48f060ac25a805f8070a3ec5daf8be8e56d2b60b (patch)
tree86ccf253f330578a0f4b639b0827a5a4af8b9706 /ui/jquery.ui.spinner.js
parent9ac6bde8a91f5f41c30fceeee6b98f9ca4bb8a91 (diff)
downloadjquery-ui-48f060ac25a805f8070a3ec5daf8be8e56d2b60b.tar.gz
jquery-ui-48f060ac25a805f8070a3ec5daf8be8e56d2b60b.zip
Spinner: Ignore delta of 0 from triggered mousewheel event. Verified
that mousewheel scrolling actually works fine in IE6.
Diffstat (limited to 'ui/jquery.ui.spinner.js')
-rw-r--r--ui/jquery.ui.spinner.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js
index 9dd0afe9b..ae7583eec 100644
--- a/ui/jquery.ui.spinner.js
+++ b/ui/jquery.ui.spinner.js
@@ -181,12 +181,13 @@ $.widget('ui.spinner', {
}
var self = this;
this.element.bind("mousewheel.spinner", function(event, delta) {
- if (self.options.disabled) {
+ if (self.options.disabled || !delta) {
return;
}
if (!self.spinning && !self._start(event)) {
return false;
}
+ $("<div>").text("delta: " + delta).appendTo(document.body)
self._spin((delta > 0 ? 1 : -1) * self.options.step, event);
clearTimeout(self.timeout);
self.timeout = setTimeout(function() {