From 6fdb8ae8935d3e3a8d2264c4486755793f85e984 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Fri, 29 Sep 2017 18:46:30 -0700 Subject: [PATCH] disable gestures in full image mode --- app/assets/javascripts/posts.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/assets/javascripts/posts.js b/app/assets/javascripts/posts.js index 16000cc18..e8ff761bd 100644 --- a/app/assets/javascripts/posts.js +++ b/app/assets/javascripts/posts.js @@ -400,6 +400,9 @@ $img.css("height", $img.data("original-height") * ratio); Danbooru.Post.resize_ugoira_controls(); $("#image-container").css({overflow: "visible"}); + if ($("body").data("hammer")) { + $("body").data("hammer").set({enable: true}); + } } } else { $img.data("scale-factor", 1); @@ -407,6 +410,9 @@ $img.height($img.data("original-height")); Danbooru.Post.resize_ugoira_controls(); $("#image-container").css({overflow: "scroll"}); + if ($("body").data("hammer")) { + $("body").data("hammer").set({enable: false}); + } } Danbooru.Note.Box.scale_all();