lightGallery
lightGallery copied to clipboard
ZoomIn and ZoomOut events
Summary
Hello team. I would like to ask if it is possible to trigger zoom in and zoom out events, when the user zooms in and zooms out so we can listen to them. And probably also add after/before zoom in and zoom out events.
Basic example
When user double clicks or pinch-zooms the photo, beforeZoomIn is triggered and after zoom finishes afterZoomIn triggers. Similar with zoomOut events
Motivation
It would be very useful, since there are actions (like hiding or showing elements) that can be done while user has zoomed in or zoomed out and we can't find a straight forward way to listen to these events I also found this closed issue that requested a similar thing: https://github.com/sachinchoolur/lightGallery/issues/979
Hey @kazvaggos,
Sure, I'm currently working on refactoring the zoom module.
Is this an urgent requirement for you?, or is it ok if I add it with the newer version of the zoom plugin?
Hello @sachinchoolur. It is OK for us to add in the newer version. Thanks a lot for looking into it :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.