BPM-for-Discord icon indicating copy to clipboard operation
BPM-for-Discord copied to clipboard

Emote rendering often scrolls chat up

Open Jibodeah opened this issue 7 years ago • 3 comments

So normally, when you switch to a channel with no new messages in it, you'll be scrolled right down to the bottom of it. ...but if there are emotes in it when BPM renders them they take up more vertical space and so the page gets pushed down. Resulting in the chat being scrolled up. ...and the more/bigger emotes there are, the worse it gets.

I think the solution would to check if the chat is scrolled fully down before rendering, and then, if it was, rescroll it down after rendering.

It doesn't always happen in all cases though. It seems to be when the emotes are pretty far from the bottom of the chat (but still getting rendered obviously). ...I wonder if rendering from the bottom up (if that's not what it's doing already) could change anything...

Jibodeah avatar Jul 14 '17 17:07 Jibodeah

@Jibodeah I suspect this is something to do with emotes in code blocks -- I recall implementing a setting that disabled this behavior. Once I get the settings menu back and cooking again I might ask you to play with a few settings and see if you can get it to repro.

ByzantineFailure avatar Jul 23 '17 16:07 ByzantineFailure

@Jibodeah -- Settings have been fixed. Can you enable the disable emotes in code blocks setting and see if this repros for you?

ByzantineFailure avatar Jul 24 '17 00:07 ByzantineFailure

Setting was already enabled, still reproduces.

Jibodeah avatar Jul 24 '17 01:07 Jibodeah