react-image-lightbox icon indicating copy to clipboard operation
react-image-lightbox copied to clipboard

Animation Duration Is Blocking Prev/Next Button Clicks

Open simon-online opened this issue 3 years ago • 0 comments

Is it possible to be able to set a different animation duration for opening and closing the lightbox from the animation duration for switching between images?

I have set a longer animation duration to have more time for the closing animation (changed via CSS overrides) before the component is destroyed however this also becomes the time that it takes to switch between images and during animation it blocks any further prev/next button clicks so it then becomes a restriction on how quickly you can switch through images via button clicks.

However I noticed that if I switched through images using the cursor keys instead it doesn't block and allows me to switch through as quickly as I hit the cursor key. So alternatively if this was the same behaviour for the prev/next button clicks then that would also work.

I currently using v5.1.4.

simon-online avatar Feb 04 '22 02:02 simon-online