fix Advance on Contract
This commit is contained in:
parent
7f5faea469
commit
f8cbbb749d
@ -88,6 +88,8 @@ ImageExpand =
|
|||||||
ImageExpand.expand post
|
ImageExpand.expand post
|
||||||
return
|
return
|
||||||
|
|
||||||
|
ImageExpand.contract post
|
||||||
|
|
||||||
# Scroll back to the thumbnail when contracting the image
|
# Scroll back to the thumbnail when contracting the image
|
||||||
# to avoid being left miles away from the relevant post.
|
# to avoid being left miles away from the relevant post.
|
||||||
{root} = post.nodes
|
{root} = post.nodes
|
||||||
@ -110,7 +112,6 @@ ImageExpand =
|
|||||||
if left < 0
|
if left < 0
|
||||||
x = -window.scrollX
|
x = -window.scrollX
|
||||||
window.scrollBy x, y if x or y
|
window.scrollBy x, y if x or y
|
||||||
ImageExpand.contract post
|
|
||||||
|
|
||||||
contract: (post) ->
|
contract: (post) ->
|
||||||
{file} = post
|
{file} = post
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user