nikini / ionic-gallery-modal

Ionic Gallery Modal (to show all your photos)
166 stars 80 forks source link

Retrieve click coordinates #13

Closed leonardoalt closed 7 years ago

leonardoalt commented 7 years ago

First of all, nice work!

Let's say I have a zoomed image, is it possible to retrieve the coordinates of a click on the image?

nikini commented 7 years ago

Thanks! I don't have the time right now to take care of it. I would want to promise that it's this week, but I cannot, since my time is very limited. I'll get some hours to work in it this week. I hope it'll be enough

nikini commented 7 years ago

You could retrieve the coordonates of the image by capturing the click event

leonardoalt commented 7 years ago

Alright, no problem. Do you mean capturing the click event inside the code of ionic-gallery-modal, or on my code on a div or something like that wrapping the modal?

nikini commented 7 years ago

Well, you can always capture the click from the modal and get the event target (did not try it, myself, but should be possible)

nikini commented 7 years ago

I mean event target becauae you also have the close button in the moda

nikini commented 7 years ago

Did you capture them?