diff options
Diffstat (limited to 'ui/jquery.ui.spinner.js')
-rw-r--r-- | ui/jquery.ui.spinner.js | 3 |
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() { |