Resize animation duration should not affect transition time when not resizing.
| Project: | Lightbox2 |
| Version: | 6.x-1.9 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
The "Resize duration" setting under advanced settings says "The duration (in seconds) of the resizing animation. Enter a value between 0 and 10." This option still has an effect on every picture transition not depending on if there is a resize or not. I would like to have it only affect the resizing transitions. Now there is an unnecessary delay between pictures that are exactly the same size.
Currently the setting title is misleading. It should say "Transition duration" instead of resize duration and something like "The duration (in seconds) of the transition between images. Enter a value between 0 and 10.".
The current versions of lightbox2 at http://www.huddletogether.com/projects/lightbox2/ and also slimbox2 at http://www.digitalia.be/software/slimbox2 seem to understand this nicely. Would it be hard to implement this functionality in this module?

#1
After looking at the lightbox.js code I see that there is a function that should handle this correctly. It seems the problem is in the preloading not functioning correctly. I need to try this on a different setup to verify.
#2
After much trying I have not been able to set up a situation where this would work as it should. There is always the same duration between images whether resizing or not.
Here is a working sample that shows the exact behaviour I'm talking about. http://trinityevanston.org/media/photo
There is a notable lag between images of the same size even if you go back in the gallery.
Any ideas why?