make Scroll into view optional
This commit is contained in:
parent
f8cbbb749d
commit
28ad96448f
@ -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.'
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user