Wrong image sometimes used for animation

Page: 1

Author Post
Member
Registered: Oct 2017
Posts: 38
In a gallery with mixed images and videos, the wrong image is sometimes used for the closing animation.

See this demo: https://misterneutron.com/animationbug/ (unlicensed - I'm still evaluating Floatbox for inclusion in something else.)

If you open the video (second thumbnail, with the little overlay) and close it, there is no animation image. But if you open the first image, hit Next, then close the floatbox while the video is playing, the animation uses the previous image. Ditto for starting with #3, hitting Prev, then closing the video.

Ideally, of course, the animation should be using the poster image for the video - consider that part of it a "feature request." But absent that, it shouldn't be using an image that's unrelated to the video.
Member
Registered: Oct 2017
Posts: 38
The same demo album shows a related, but opposite problem. Start with the #2 thumbnail, the video. Hit Next, so you're looking at the Death Valley image. Now close the floatbox - you'll see that there's no image used for the animation.
Administrator
Registered: Aug 2008
Posts: 3382
Thanks for the clear example. I'll try to tidy that up in the next release. The tidiness won't involve trying to use the poster image though, for a few reasons.
Administrator
Registered: Aug 2008
Posts: 3382
Revisiting this, the correct answer is to use the 'zoomSource' option on the video link. Having zoom image sources for each item in a mixed-type gallery set resolves all inconsistencies reported here.
Member
Registered: Oct 2017
Posts: 38
Ah, yes, that does appear to cure the problem. :)
Member
Registered: Oct 2017
Posts: 38
It would be nice if the zoomSource were also used when cross-fading from one item to the next in a gallery.

Page: 1