fix bug in scrolling for full image
This commit is contained in:
parent
8e2f9167fb
commit
10859fed95
@ -182,7 +182,8 @@ ImageExpand =
|
|||||||
|
|
||||||
# Scroll to display full image.
|
# Scroll to display full image.
|
||||||
imageBottom = Header.getBottomOf file.fullImage
|
imageBottom = Header.getBottomOf file.fullImage
|
||||||
if imageBottom < 0
|
{height} = file.fullImage.getBoundingClientRect()
|
||||||
|
if imageBottom + height >= 0 and imageBottom < 0
|
||||||
window.scrollBy 0, Math.min(-imageBottom, Header.getTopOf file.fullImage)
|
window.scrollBy 0, Math.min(-imageBottom, Header.getTopOf file.fullImage)
|
||||||
|
|
||||||
play: (post) ->
|
play: (post) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user