Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: fancybox/lib/jquery.mousewheel-3.0.6.pack.js

Issue 8615139: adblockpluschrome: Open share page in lightbox (Closed)
Patch Set: Created Oct. 23, 2012, 4:12 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
2 * Licensed under the MIT License (LICENSE.txt).
3 *
4 * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
5 * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
6 * Thanks to: Seamus Leahy for adding deltaX and deltaY
7 *
8 * Version: 3.0.6
9 *
10 * Requires: 1.2.2+
11 */
12 (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.han dle).apply(this,c)}var c=["DOMMouseScroll","mousewheel"];if(d.event.fixHooks)for (var h=c.length;h;)d.event.fixHooks[c[--h]]=
13 d.event.mouseHooks;d.event.special.mousewheel={setup:function(){if(this.addEvent Listener)for(var a=c.length;a;)this.addEventListener(c[--a],e,false);else this.o nmousewheel=e},teardown:function(){if(this.removeEventListener)for(var a=c.lengt h;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);
OLDNEW
« no previous file with comments | « fancybox/lib/jquery-1.8.2.min.js ('k') | fancybox/source/blank.gif » ('j') | firstRun.js » ('J')

Powered by Google App Engine
This is Rietveld