From da0d64aa1b19547843dd3e8a5b4060afe23fed2c Mon Sep 17 00:00:00 2001 From: Jonathan Keane Date: Sat, 3 Jul 2021 20:48:55 -0500 Subject: [PATCH] allow thumbnail navigation without zooming enabled --- src/jquery.nanogallery2.core.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/jquery.nanogallery2.core.js b/src/jquery.nanogallery2.core.js index 3aaf4ac9..c7d8d3a1 100644 --- a/src/jquery.nanogallery2.core.js +++ b/src/jquery.nanogallery2.core.js @@ -8987,9 +8987,6 @@ }); - // ZOOM FEATURE ENABLED - if( G.O.viewerZoom ) { - G.VOM.hammertime.add( new NGHammer.Tap({ event: 'doubletap', taps: 2, interval: 250 }) ); G.VOM.hammertime.add( new NGHammer.Tap({ event: 'singletap' }) ); G.VOM.hammertime.get('doubletap').recognizeWith('singletap'); @@ -9081,6 +9078,8 @@ } }); + // ZOOM FEATURE ENABLED + if( G.O.viewerZoom ) { // double tap -> zoom G.VOM.hammertime.on('doubletap', function(ev) { if( !ViewerEvents() ) { return; }