diff options
author | piernov <piernov@piernov.org> | 2016-05-10 22:24:50 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2016-05-10 22:24:50 +0200 |
commit | 9ad61ab6a23bd6fd51e67b85d743b4a7664ec637 (patch) | |
tree | 04c4ef3158c9848db91e56f9318162431a6040b4 /doc/phpdoc/js/jquery.mousewheel.min.js | |
parent | 204e838a7794bbce0d44fc35efb367abb052d02f (diff) | |
parent | 1e52affe15fb13e920f8942de998073238be6d01 (diff) | |
download | candybox-9ad61ab6a23bd6fd51e67b85d743b4a7664ec637.tar.gz candybox-9ad61ab6a23bd6fd51e67b85d743b4a7664ec637.tar.bz2 candybox-9ad61ab6a23bd6fd51e67b85d743b4a7664ec637.tar.xz candybox-9ad61ab6a23bd6fd51e67b85d743b4a7664ec637.zip |
Merge branch 'phpdoc' into piernov
Diffstat (limited to 'doc/phpdoc/js/jquery.mousewheel.min.js')
-rw-r--r-- | doc/phpdoc/js/jquery.mousewheel.min.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/phpdoc/js/jquery.mousewheel.min.js b/doc/phpdoc/js/jquery.mousewheel.min.js new file mode 100644 index 0000000..e39a83a --- /dev/null +++ b/doc/phpdoc/js/jquery.mousewheel.min.js @@ -0,0 +1,13 @@ +/*! Copyright (c) 2011 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.6 + * + * Requires: 1.2.2+ + */ +(function(d){function e(a){var b=a||window.event,c=[].slice.call(arguments,1),f=0,e=0,g=0,a=d.event.fix(b);a.type="mousewheel";b.wheelDelta&&(f=b.wheelDelta/120);b.detail&&(f=-b.detail/3);g=f;b.axis!==void 0&&b.axis===b.HORIZONTAL_AXIS&&(g=0,e=-1*f);b.wheelDeltaY!==void 0&&(g=b.wheelDeltaY/120);b.wheelDeltaX!==void 0&&(e=-1*b.wheelDeltaX/120);c.unshift(a,f,e,g);return(d.event.dispatch||d.event.handle).apply(this,c)}var c=["DOMMouseScroll","mousewheel"];if(d.event.fixHooks)for(var h=c.length;h;)d.event.fixHooks[c[--h]]= +d.event.mouseHooks;d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],e,false);else this.onmousewheel=e},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],e,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);
\ No newline at end of file |