make Scroll into view optional
This commit is contained in:
parent
f8cbbb749d
commit
28ad96448f
@ -427,6 +427,10 @@ Config =
|
|||||||
false
|
false
|
||||||
''
|
''
|
||||||
]
|
]
|
||||||
|
'Scroll into view': [
|
||||||
|
true
|
||||||
|
'Scroll down when expanding images to bring the full image into view.'
|
||||||
|
]
|
||||||
'Expand spoilers': [
|
'Expand spoilers': [
|
||||||
true
|
true
|
||||||
'Expand all images along with spoilers.'
|
'Expand all images along with spoilers.'
|
||||||
|
|||||||
@ -84,7 +84,7 @@ ImageExpand =
|
|||||||
|
|
||||||
toggle: (post) ->
|
toggle: (post) ->
|
||||||
unless post.file.isExpanding or post.file.isExpanded
|
unless post.file.isExpanding or post.file.isExpanded
|
||||||
post.file.scrollIntoView = true
|
post.file.scrollIntoView = Conf['Scroll into view']
|
||||||
ImageExpand.expand post
|
ImageExpand.expand post
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user