Sha256: 6f9bc4e3aa72ef790b57af4a566c3b37a5683ebafdf930e8ec4163c5246006d7

Contents?: true

Size: 921 Bytes

Versions: 9

Compression:

Stored size: 921 Bytes

Contents

(function(d){function g(a){var b=a||window.event,i=[].slice.call(arguments,1),c=0,h=0,e=0;a=d.event.fix(b);a.type="mousewheel";if(a.wheelDelta)c=a.wheelDelta/120;if(a.detail)c=-a.detail/3;e=c;if(b.axis!==undefined&&b.axis===b.HORIZONTAL_AXIS){e=0;h=-1*c}if(b.wheelDeltaY!==undefined)e=b.wheelDeltaY/120;if(b.wheelDeltaX!==undefined)h=-1*b.wheelDeltaX/120;i.unshift(a,c,h,e);return d.event.handle.apply(this,i)}var f=["DOMMouseScroll","mousewheel"];d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=
f.length;a;)this.addEventListener(f[--a],g,false);else this.onmousewheel=g},teardown:function(){if(this.removeEventListener)for(var a=f.length;a;)this.removeEventListener(f[--a],g,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
compass-jquery-plugin-0.3.2.7 templates/jquery/jquery.mousewheel.min.js
compass-jquery-plugin-0.3.2.7.nil templates/jquery/jquery.mousewheel.min.js
compass-jquery-plugin-0.3.2.6 templates/jquery/jquery.mousewheel.min.js
compass-jquery-plugin-0.3.2.5 templates/jquery/jquery.mousewheel.min.js
compass-jquery-plugin-0.3.2.4 templates/jquery/jquery.mousewheel.min.js
compass-jquery-plugin-0.3.2.3 templates/jquery/jquery.mousewheel.min.js
compass-jquery-plugin-0.3.2.2 templates/jquery/jquery.mousewheel.min.js
compass-jquery-plugin-0.3.2.1 templates/jquery/jquery.mousewheel.min.js
compass-jquery-plugin-0.3.2.0 templates/jquery/jquery.mousewheel.min.js