This happened to me only on in the following case:
Firefox browser (the problem does not happen on Chromium-based browsers)
a video is followed by an image
the video is short enough to be played several times before switching to the image
In this case, a frame of the video appears in front of the image.
It seems to come from the eventlistener "canplaythrough" that is called each time the video is (re)-started, instead of only once.
I managed to solve that by passing once: true after passive: true to the addEventListener call
This happened to me only on in the following case:
In this case, a frame of the video appears in front of the image.
It seems to come from the eventlistener "canplaythrough" that is called each time the video is (re)-started, instead of only once. I managed to solve that by passing
once: true
afterpassive: true
to the addEventListener callI can make a PR if you want