self.propagate("change", e);\r
})\r
;\r
+ if ($.fn.mousewheel) {\r
+ this.element.mousewheel(function(e, delta) { self.mousewheel(e, delta); });\r
+ }\r
\r
},\r
plugins: {},\r
if(e.keyCode == 36) this.element[0].value = this.options.min || this.options.start; //Home key goes to min, if defined, else to start\r
if(e.keyCode == 35 && this.options.max != undefined) this.element[0].value = this.options.max; //End key goes to maximum\r
},\r
+ mousewheel: function(e, delta) {\r
+ delta = ($.browser.opera ? -delta / Math.abs(delta) : delta);\r
+ delta > 0 ? this.up(e) : this.down(e);\r
+ e.preventDefault();\r
+ },\r
ui: function(e) {\r
return {\r
instance: this,\r
.removeClass("ui-spinner ui-spinner-disabled")\r
.removeData("spinner")\r
.unbind(".spinner");\r
+ if ($.fn.mousewheel) {\r
+ this.element.unmousewheel();\r
+ }\r
}\r
});\r
\r