From 28ad96448f32bd4b316daa1e0eb09b406bf923b0 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 27 Jul 2014 16:17:58 -0700 Subject: [PATCH] make Scroll into view optional --- src/General/Config.coffee | 4 ++++ src/Images/ImageExpand.coffee | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/General/Config.coffee b/src/General/Config.coffee index 54c52f65c..60e4f04c0 100755 --- a/src/General/Config.coffee +++ b/src/General/Config.coffee @@ -427,6 +427,10 @@ Config = false '' ] + 'Scroll into view': [ + true + 'Scroll down when expanding images to bring the full image into view.' + ] 'Expand spoilers': [ true 'Expand all images along with spoilers.' diff --git a/src/Images/ImageExpand.coffee b/src/Images/ImageExpand.coffee index ba402b26b..ef1510035 100755 --- a/src/Images/ImageExpand.coffee +++ b/src/Images/ImageExpand.coffee @@ -84,7 +84,7 @@ ImageExpand = toggle: (post) -> unless post.file.isExpanding or post.file.isExpanded - post.file.scrollIntoView = true + post.file.scrollIntoView = Conf['Scroll into view'] ImageExpand.expand post return