readding mousewheel script for fancybox
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 16 May 2016 14:59:22 +0000 (10:59 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 16 May 2016 14:59:22 +0000 (10:59 -0400)
fancybox/lib/jquery.mousewheel-3.0.6.pack.js [new file with mode: 0644]
models/front/members/detail.php

diff --git a/fancybox/lib/jquery.mousewheel-3.0.6.pack.js b/fancybox/lib/jquery.mousewheel-3.0.6.pack.js
new file mode 100644 (file)
index 0000000..e39a83a
--- /dev/null
@@ -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
index da0f873..bf9e1bc 100644 (file)
@@ -144,7 +144,7 @@ class GlmMembersFront_members_detail extends GlmDataMemberInfo
         wp_enqueue_style('fancyStyleThumbs', GLM_MEMBERS_PLUGIN_URL . 'fancybox/source/helpers/jquery.fancybox-thumbs.css?v=1.0.7');
         
         wp_enqueue_script('fancyScript', GLM_MEMBERS_PLUGIN_URL . 'fancybox/source/jquery.fancybox.pack.js?v=2.1.5', array('jquery'), '', true );
-//        wp_enqueue_script('fancyMouse', GLM_MEMBERS_PLUGIN_URL . 'fancybox/lib/jquery.mousewheel-3.0.6.pack.js', array('jquery'), '', true );
+        wp_enqueue_script('fancyMouse', GLM_MEMBERS_PLUGIN_URL . 'fancybox/lib/jquery.mousewheel-3.0.6.pack.js', array('jquery'), '', true );
         wp_enqueue_script('fancyThumbs', GLM_MEMBERS_PLUGIN_URL . 'fancybox/source/helpers/jquery.fancybox-thumbs.js?v=1.0.7', array('jquery'), '', true );
         wp_enqueue_script('fancyButtons', GLM_MEMBERS_PLUGIN_URL . 'fancybox/source/helpers/jquery.fancybox-buttons.js?v=1.0.5', array('jquery'), '', true );
         wp_enqueue_script('fancyMedia', GLM_MEMBERS_PLUGIN_URL . 'fancybox/source/helpers/jquery.fancybox-media.js?v=1.0.6', array('jquery'), '', true );