libgif-js icon indicating copy to clipboard operation
libgif-js copied to clipboard

Pause playback when loading a new GIF to avoid errors

Open aliask opened this issue 7 years ago • 0 comments

If load_url is called while the GIF is playing, the doStep() callback will attempt to read the frames[] array, which has been cleared by load_setup().

Simple workaround is to pause the playback before frames[] is cleared.

aliask avatar Oct 21 '16 21:10 aliask