From 6fce6cbf4f6685d20348ae3d8dfddcc9e0a20121 Mon Sep 17 00:00:00 2001 From: ebinBuddha <30810167+ebinBuddha@users.noreply.github.com> Date: Tue, 16 Apr 2019 07:51:58 +0200 Subject: [PATCH] using nameBlock as reference for position as it's more predictable than the root esp. with the op --- src/Miscellaneous/PostJumper.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) ->