From f8cbbb749df44358e298b50a613747114287bc01 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 27 Jul 2014 15:50:06 -0700 Subject: [PATCH] fix Advance on Contract --- src/Images/ImageExpand.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Images/ImageExpand.coffee b/src/Images/ImageExpand.coffee index 61f3d232f..ba402b26b 100755 --- a/src/Images/ImageExpand.coffee +++ b/src/Images/ImageExpand.coffee @@ -88,6 +88,8 @@ ImageExpand = ImageExpand.expand post return + ImageExpand.contract post + # Scroll back to the thumbnail when contracting the image # to avoid being left miles away from the relevant post. {root} = post.nodes @@ -110,7 +112,6 @@ ImageExpand = if left < 0 x = -window.scrollX window.scrollBy x, y if x or y - ImageExpand.contract post contract: (post) -> {file} = post