Gif emotes animation reset after its posted again[Bug]
Describe the bug Gif emote animation is reset after the same one is posted in chat. Which means if people keep posting it, it keeps reseting and not progressing at all. Which breaks the point of a gif.
The issue is solely with 7tv, because i tried disabling it, and both ffz and bttv worked fine then. I also noticed that when you zoom in the tab with (ctrl +) theres no problem anymore with the animation reset.
To Reproduce Steps to reproduce the behavior:
- Open a stream which has an active chat, where there will be multiple people posting the same gif in quick succession.
- See the problem listed above.
Expected behavior Gif emotes should do a full animation even after the same one is posted in chat.
Version: I am using firefox(latest 93.0) and win10(latest). The version where the bug is occuring 2.0.0
https://github.com/FrankerFaceZ/FrankerFaceZ/issues/985 Has to do how firefox displays animated images, unsure how BTTV does not have this, only 7tv.
Also see this issue. Like jkra linked, not sure if this is just a bug with firefox that needs more visibility or if this is specific to 7TV
Seems like a Firefox issue, as there's also nothing fancy the 7TV extension does to display images. It is, also, just a standard <img> tag.
I'm sure it would be trivial for Mozilla to fix something like this, however from what I've seen Firefox isn't a very active project and I see bug reports stand there for years without any response, so I wouldn't hold my breath. Would just advise to use a more up to date web browser if possible
I think a counter-point to that though is similar to the FrankerFaceZ note on it, BTV has no issue with this
If someone knows why this happens, or how to reproduce the issue (I have never seen this during my testing with Firefox) I could look into a fix. Or someone could submit a pull request to fix it, but until then I don't have a solution
I'll look further into it to see if I can find a way to reproduce it accurately, so far it has been just look at any channel with a lot of people chatting/using gif emotes and it happens
I'm looking forward to what you guys find. I refuse to use a chromium browser :) I've been looking for a fix for a while now (ever since I opened the issue on FFZ) and the only thing I could find was that zooming in fixed the problem, but then the rest of chat looks too big.
This happens in erobb's chat a lot, especially with the "LMAOOOOOOOOOO" emote (https://7tv.app/emotes/61e89f42699aab943eab83c3).
Yeah, I was looking into this, it appears that using srcset instead of src for loading a gif/image/whatever will cause it to appear correctly w/o reloading the image. If you set it to just src, it will cause it to "restart" the image every time it is added into the page
Using the latest beta version of 7TV on Firefox (v3 beta) seems to have fixed the issue.