Skip to content
Permalink
Browse files

Slider: Simplifying mousewheel binding, remove Opera workaround

  • Loading branch information...
jzaefferer committed Oct 26, 2010
1 parent 0a1da01 commit e442dd352895b5e7c605d6baeb825a954db4b6af
Showing with 1 addition and 4 deletions.
  1. +1 −4 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;
}

0 comments on commit e442dd3

Please sign in to comment.
You can’t perform that action at this time.