Sha256: 1b6d02f909ccab91a8a6b820a8e231e8581a3dffbe3acf9ec435f7871e7a019f

Contents?: true

Size: 1.25 KB

Versions: 128

Compression:

Stored size: 1.25 KB

Contents

/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and deltaY
*
* Version: 3.0.4
*
* Requires: 1.2.2+
*/

(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

128 entries across 108 versions & 11 rubygems

Version Path
cropimage_riffpad-0.1.0 app/assets/javascripts/jquery.mousewheel-3.0.4.pack.js
alfa-0.0.4.pre assets/js/jquery/plugins/fancybox/jquery.mousewheel-3.0.4.pack.js
cropimage_riffpad-0.0.2 app/assets/javascripts/jquery.mousewheel-3.0.4.pack.js
cropimage_riffpad-0.0.1 app/assets/javascripts/jquery.mousewheel-3.0.4.pack.js
alfa-0.0.2.pre assets/js/jquery/plugins/fancybox/jquery.mousewheel-3.0.4.pack.js
spree_heist_theme-0.0.1 vendor/assets/javascripts/jquery.mousewheel-3.0.4.pack.js
spree_heist_theme-0.0.0 vendor/assets/javascripts/jquery.mousewheel-3.0.4.pack.js
koda-0.0.12 public/koda/scripts/plugins/fancybox/jquery.mousewheel-3.0.4.pack.js
koda-0.0.11 public/koda/scripts/plugins/fancybox/jquery.mousewheel-3.0.4.pack.js
koda-0.0.9 public/koda/scripts/plugins/fancybox/jquery.mousewheel-3.0.4.pack.js
koda-0.0.8 public/koda/scripts/plugins/fancybox/jquery.mousewheel-3.0.4.pack.js
frontend-helpers-0.1.3 vendor/assets/javascripts/fancybox/jquery.mousewheel.js
speedo-0.2.0 vendor/assets/javascripts/speedo/jquery.mousewheel-3.0.4.pack.js
speedo-0.1.9 vendor/assets/javascripts/jquery.mousewheel-3.0.4.pack.js
speedo-0.1.8 vendor/assets/javascripts/jquery.mousewheel-3.0.4.pack.js
speedo-0.1.7 vendor/assets/javascripts/jquery.mousewheel-3.0.4.pack.js
speedo-0.1.6 vendor/assets/javascripts/jquery.mousewheel-3.0.4.pack.js
speedo-0.1.5 vendor/assets/javascripts/jquery.mousewheel-3.0.4.pack.js
speedo-0.1.4 vendor/assets/javascripts/jquery.mousewheel-3.0.4.pack.js
speedo-0.1.3 vendor/assets/javascripts/jquery.mousewheel-3.0.4.pack.js