-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
Repro steps:
- Hard to test without a really large animated GIF or some other way to slow load time down substantially. I used this large img from wikipedia
- Create 2 images in DOM within the same scope and with that large GIF:
<img data-scope="testscope" data-gif="https://upload.wikimedia.org/wikipedia/commons/a/a1/Lexington_original_configuration_orig.gif" src="SomeOtherStaticGIF.gif" alt=""> <img data-scope="testscope" data-gif="https://upload.wikimedia.org/wikipedia/commons/a/a1/Lexington_original_configuration_orig.gif" src="SomeOtherStaticGIF.gif" alt=""> - Init using
$('img').gifplayer({... wait: true ...}) - Open in browser, click on first GIF (which starts loading) and then quickly click the second GIF. You must click the second GIF before the first one loads completely into the DOM
- Wait until the large GIF is fully downloaded. You will see that the first image now disappears. This is because the onload handler within the
loadGiffunction callsgp.previewElement.hide()once loading completes, but thestopGiffunction has already calledthis.gifElement.hide()- therefore both elements are hidden.
I'm working on a commit/PR for this right now, and will post it soon
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels