Skip to content
This repository
Browse code

jquery.mousewheel updated

  • Loading branch information...
commit 3ce3917e58bf79f84123a5cb980d4c9be5d5e56f 1 parent e48e973
Raymond May Jr. authored

Showing 2 changed files with 1 addition and 13 deletions. Show diff stats Hide diff stats

  1. +1 1  index.html
  2. +0 12 js/jquery.mousewheel.min.js
2  index.html
@@ -15,7 +15,7 @@
15 15 <script src="js/jquery.cookie.js" type="text/javascript"></script>
16 16 <script src="js/jquery.scrollTo-1.4.2-min.js" type="text/javascript"></script>
17 17 <script src="js/jquery.lazyload.min.js" type="text/javascript"></script>
18   -<script src="js/jquery.mousewheel.min.js" type="text/javascript"></script>
  18 +<script src="js/jquery.mousewheel.js" type="text/javascript"></script>
19 19
20 20 <script src="js/tv.youtube.js" type="text/javascript"></script>
21 21 <script src="js/tv.vimeo.js" type="text/javascript"></script>
12 js/jquery.mousewheel.min.js
... ... @@ -1,12 +0,0 @@
1   -/* Copyright (c) 2010 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.4
9   - *
10   - * Requires: 1.2.2+
11   - */
12   -(function(c){var a=["DOMMouseScroll","mousewheel"];c.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var d=a.length;d;){this.addEventListener(a[--d],b,false)}}else{this.onmousewheel=b}},teardown:function(){if(this.removeEventListener){for(var d=a.length;d;){this.removeEventListener(a[--d],b,false)}}else{this.onmousewheel=null}}};c.fn.extend({mousewheel:function(d){return d?this.bind("mousewheel",d):this.trigger("mousewheel")},unmousewheel:function(d){return this.unbind("mousewheel",d)}});function b(i){var g=i||window.event,f=[].slice.call(arguments,1),j=0,h=true,e=0,d=0;i=c.event.fix(g);i.type="mousewheel";if(i.wheelDelta){j=i.wheelDelta/120}if(i.detail){j=-i.detail/3}d=j;if(g.axis!==undefined&&g.axis===g.HORIZONTAL_AXIS){d=0;e=-1*j}if(g.wheelDeltaY!==undefined){d=g.wheelDeltaY/120}if(g.wheelDeltaX!==undefined){e=-1*g.wheelDeltaX/120}f.unshift(i,j,e,d);return c.event.handle.apply(this,f)}})(jQuery);

0 comments on commit 3ce3917

Please sign in to comment.
Something went wrong with that request. Please try again.