Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix gif animations overlapping when sending two gifs #212

Merged
merged 1 commit into from
Feb 18, 2024

Conversation

LGFae
Copy link
Owner

@LGFae LGFae commented Feb 18, 2024

Gif animations were overlapping when an animated gif was sent while another animated gif was being displayed. This happened because we were setting transition-finished to true automatically when the animation token was dropped. So, when the previous gif animation stopped, it would drop the token and set transition-finished to true, even though the transition hadn't finished yet.

This patch sets transition-finished manually, only for the transitions that actually finished.

Fixes #188.

Gif animations were overlapping when an animated gif was sent while
another animated gif was being displayed. This happened because we were
setting `transition-finished` to `true` automatically when the animation
token was dropped. So, when the previous gif animation stopped, it would
drop the token and set `transition-finished` to true, even though the
transition hadn't finished yet.

This patch sets `transition-finished` manually, only for the transitions
that actually finished.
@LGFae LGFae merged commit b843150 into main Feb 18, 2024
9 checks passed
@LGFae LGFae deleted the fix-overlapping-gif-animations branch February 18, 2024 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GIF transition visual bug
1 participant