Sha256: 72101f71f3e0c03d0353cb81667c671a513aef16dc747313bbfff0864efbebb5

Contents?: true

Size: 1.13 KB

Versions: 16

Compression:

Stored size: 1.13 KB

Contents

/*! Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * 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.
 *
 * Version: 3.0.2
 *
 * Requires: 1.2.2+
 */

(function(b){function d(a){var f=[].slice.call(arguments,1),e=0;a=b.event.fix(a||window.event);a.type="mousewheel";if(a.wheelDelta)e=a.wheelDelta/120;if(a.detail)e=-a.detail/3;f.unshift(a,e);return b.event.handle.apply(this,f)}var c=["DOMMouseScroll","mousewheel"];b.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],d,false);else this.onmousewheel=d},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],
d,false);else this.onmousewheel=null}};b.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

16 entries across 16 versions & 1 rubygems

Version Path
typus-3.0.2 lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js
typus-3.0.1 lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js
typus-3.0.0 lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js
typus-1.0.0.pre13 lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js
typus-1.0.0.pre12 lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js
typus-1.0.0.pre11 lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js
typus-1.0.0.pre10 lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js
typus-1.0.0.pre9 lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js
typus-1.0.0.pre8 lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js
typus-1.0.0.pre7 lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js
typus-1.0.0.pre6 lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js
typus-1.0.0.pre5 lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js
typus-1.0.0.pre4 lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js
typus-1.0.0.pre3 lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js
typus-1.0.0.pre2 lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js
typus-1.0.0.pre lib/generators/templates/public/admin/vendor/fancybox/jquery.mousewheel-3.0.2.pack.js