Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Chat not jumping to last chat entry

I have used roll20 a lot and never have I had this problem before. Now all of a sudden, the chat do not jump to last chat entry. And yes I have scrolled all the way down to the last one before entering a new one. I have never had this problem before, and my setup is the same as it always has been. Scrolling manually whenever an entry is made is going to ruin my games. I can see on the graphics that there has been some sort of update. Anyone else having this problem? Anyone know of a solution? Thanks.
1662805989

Edited 1662806005
Gauss
Forum Champion
This is a known bug related to a newly released feature. We are all dealing with it.  At this time there is no solution other than to wait for the Devs to fix it. 
Thank you for your reply.
Man, it's weird how something small like this is disruptive to play. We've been running into it all week, 40-50 times per session. It's left a lot of people frustrated. It's weird too, because it doesn't always happen. It seems to scroll just fine when attack rolls are involved. But anything that's pulled from spellcasting triggers the bug. (5e, not sure if this applies to other systems)
1663019553
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I believe it is related to the length of the entry. Anything about half the height of the chat or taller does not trigger an auto scroll. And yes, it's terribly annoying.
1663139822

Edited 1663166376
Oosh
Sheet Author
API Scripter
Edit - most sincere appologees to Chrome users. The updated version should work for non-FF folk. Did not realise scrollTopMax was a FF-specific property! Thanks Keith for reminding me that I'm an idiot and should test things.... Here's a grease/tamper/fireMonkey script to re enable the behaviour, if anyone is bothered enough. You can edit the value of maxScrollSnap on line 8 - this is the max scroll distance, in pixels, for the snapping to kick in. Basically, if you've scrolled more than 500px back up the chatbar, it won't autosnap (you don't want it autoscrolling when you've backtracked 5 pages to read something previous). You can just paste this into the console and run it if you like, but it won't last past a session, any kind of refresh/reload will remove it. The various Monkey extensions all auto load this so you don't have to think about it. // ==UserScript== // @name autoScrollSnap // @match <a href="https://app.roll20.net/editor/*" rel="nofollow">https://app.roll20.net/editor/*</a> // @version 0.1.0 // ==/UserScript== (() =&gt; { const config = { maxScrollSnap: 500, }; const getScrollDelta = ({ scrollTop, scrollTopMax, scrollHeight, clientHeight }) =&gt; { return (isNaN(scrollTopMax)) ? scrollHeight - scrollTop - clientHeight : scrollTopMax - scrollTop; }; const chatNode = document.querySelector('#textchat'), contentNode = chatNode.querySelector('.content'); const observeChat = new MutationObserver((targets) =&gt; { targets.forEach(target =&gt; { if (target.addedNodes?.length) { const messageHeight = target.addedNodes[0].offsetHeight, scrollDelta = getScrollDelta(chatNode); // console.warn(scrollDelta); if (messageHeight + config.maxScrollSnap &gt; scrollDelta) { chatNode.scrollTop = chatNode.scrollTopMax ?? chatNode.scrollHeight - chatNode.clientHeight; } } }); }); const observerConfig = {attributes: false, childList: true, subtree: false}; if (chatNode &amp;&amp; contentNode) observeChat.observe(contentNode, observerConfig); else console.error(`Autoscroller could not find chatbar elements.`); })();