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

Animated gifs are not animated when subscribing to AnimationFrame.diffs on Safari #19

Open
midfield opened this issue Dec 18, 2017 · 0 comments

Comments

@midfield
Copy link

I have written a small game using elm-graphics and animated gifs for sprites, it works great on Chrome; however on Safari the animated gifs only show the first frame if AnimationFrame.diffs is subscribed to. Note that animated gifs work fine AnimationFrame.diffs is not subscribed to.

To reproduce, you can view https://avh4.github.io/elm-mario/ (a port of the original Elm Mario demo to 0.18) on Chrome and Safari on Mac. On Chrome the Mario sprite is animated when walking left or right; on Safari it is not. I can reproduce this problem on Safari 11 on High Sierra and on iOS, using Elm 0.18 and elm-graphics 1.0.1.

I suspect for some reason the vdom is recreating the images every frame so the animated gifs are getting redrawn.

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

No branches or pull requests

1 participant