From a4215e35dcfb1eb90b29589c636cbe154b3c4ebb Mon Sep 17 00:00:00 2001 From: ReAnzu Date: Mon, 8 Apr 2019 13:01:42 -0500 Subject: [PATCH] client/post: Require the post to not be in edit mode. --- client/js/views/post_main_view.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/client/js/views/post_main_view.js b/client/js/views/post_main_view.js index 20f559d..e2e888f 100644 --- a/client/js/views/post_main_view.js +++ b/client/js/views/post_main_view.js @@ -88,8 +88,16 @@ class PostMainView { new Touch( postContainerNode, - showPreviousImage, - showNextImage + () => { + if (!ctx.editMode) { + showPreviousImage() + } + }, + () => { + if (!ctx.editMode) { + showNextImage() + } + } ) }