diff --git a/src/Miscellaneous/PostJumper.coffee b/src/Miscellaneous/PostJumper.coffee index 52a298653..d24b7d575 100644 --- a/src/Miscellaneous/PostJumper.coffee +++ b/src/Miscellaneous/PostJumper.coffee @@ -50,8 +50,8 @@ PostJumper = span scroll: (fromID,toID) -> - prevPos = g.posts[fromID].nodes.root.getBoundingClientRect().top - destPos = g.posts[toID].nodes.root.getBoundingClientRect().top + prevPos = g.posts[fromID].nodes.nameBlock.getBoundingClientRect().top + destPos = g.posts[toID].nodes.nameBlock.getBoundingClientRect().top window.scrollBy 0, destPos-prevPos indexOfPair: (array,key) ->