make Scroll into view optional

This commit is contained in:
ccd0 2014-07-27 16:17:58 -07:00
parent f8cbbb749d
commit 28ad96448f
2 changed files with 5 additions and 1 deletions

View File

@ -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.'

View File

@ -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