summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/vendor/imageviewer.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-03 00:45:40 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-03 00:45:40 +0200
commit05abca52782442dacb06d98f8433c0a8666b4e55 (patch)
treecee13495c178a58461be808c7609574da7bddb0d /StoneIsland/www/js/vendor/imageviewer.js
parent351ba369d4d5939f207fd5e5151fe5a6ef4361fe (diff)
app
Diffstat (limited to 'StoneIsland/www/js/vendor/imageviewer.js')
-rw-r--r--StoneIsland/www/js/vendor/imageviewer.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/StoneIsland/www/js/vendor/imageviewer.js b/StoneIsland/www/js/vendor/imageviewer.js
index 4484b753..847c6070 100644
--- a/StoneIsland/www/js/vendor/imageviewer.js
+++ b/StoneIsland/www/js/vendor/imageviewer.js
@@ -404,6 +404,9 @@
var touchtime = 0,
point;
imageWrap.on('click' + eventSuffix, function (e) {
+ if (openTime+700 < Date.now()) {
+ return $('.iv-close').trigger("click")
+ }
if (touchtime == 0) {
touchtime = Date.now();
point = {