lightGallery icon indicating copy to clipboard operation
lightGallery copied to clipboard

ZoomIn and ZoomOut events

Open kazvaggos opened this issue 2 years ago • 2 comments

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

kazvaggos avatar Jun 15 '22 13:06 kazvaggos

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?

sachinchoolur avatar Jun 17 '22 15:06 sachinchoolur

Hello @sachinchoolur. It is OK for us to add in the newer version. Thanks a lot for looking into it :)

kazvaggos avatar Jun 23 '22 08:06 kazvaggos

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.

stale[bot] avatar Aug 31 '22 00:08 stale[bot]