diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-03-14 13:11:55 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-03-14 13:11:55 +0000 |
commit | f465e32109d6600887f1c5765b44347a4cfaa3d7 (patch) | |
tree | 3855e96d1d69683b388d82c27bad3f9e339f2792 /web/js/fancybox/jquery.mousewheel-3.0.4.pack.js | |
parent | 1b15ca0aea334d20fb0f19fed36bc948668e2a14 (diff) | |
parent | c9681f6bbc04659b9d6ed5eaa46b8c2edd704f9e (diff) |
Merge branch 'redesign'
Conflicts:
.gitignore
notes/INSTALL
perllib/FixMyStreet/App/Controller/Photo.pm
perllib/FixMyStreet/Cobrand/FixMyStreet.pm
Diffstat (limited to 'web/js/fancybox/jquery.mousewheel-3.0.4.pack.js')
-rw-r--r-- | web/js/fancybox/jquery.mousewheel-3.0.4.pack.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/web/js/fancybox/jquery.mousewheel-3.0.4.pack.js b/web/js/fancybox/jquery.mousewheel-3.0.4.pack.js new file mode 100644 index 000000000..cb66588e2 --- /dev/null +++ b/web/js/fancybox/jquery.mousewheel-3.0.4.pack.js @@ -0,0 +1,14 @@ +/*! 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);
\ No newline at end of file |