Forum jumps to the bottom of the page instead of latest message.
Comments
-
@dirtdude said:
I'm not sure that we don't have oversight anymore as evidenced by the dickface thread, somebody should let @miller65rod knowMaybe you should be heir to the throne?
2 -
@Yakster said:
I've modified the script to read the anchor from the URL, subtract the hash mark and use that instead of statically using 'latest' every time. This makes the script work for reading the latest unread message in a thread as well as the latest unread message in a personal message. Here's the script:setTimeout(() => {
const anchorElement = document.getElementById(window.location.hash.split('#').pop());
if (anchorElement) {
// Smoothly scroll to the element after the delay
anchorElement.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
}, 6500); // 2000 milliseconds = 2 secondsI've had to increase the timeout setting from 2000 to 6500 because the page kept jumping around and not settling down to the right spot. It seems to be working well now.
I've also noticed this issue happening on another forum but not quite to the same degree so I'm now using the same script with the original timeout on that site too
Join us on Zoom vHerf (Meeting # 2619860114 Password vHerf2020 )2


