Lightbox icon indicating copy to clipboard operation
Lightbox copied to clipboard

Add long press to LightboxControllerTouchDelegate

Open jmschonfeld opened this issue 4 years ago • 1 comments

The current LightboxControllerTouchDelegate allows me to listen for single taps on an image. However, a common gesture on images is a long press (press and hold) to do things like sharing/downloading the image. Is there a way with the current state of the library that I can add a delegate for this or add my own long press gesture recognizer to the image views?

jmschonfeld avatar Jul 26 '20 21:07 jmschonfeld

Hi @jmschonfeld, this should be doable, there are two caveats, tho.

1.- This will introduce a slight delay for single touches seeing as iOS will wait to see if an additional action is presented, this might make tapping feel slower than usual. We could add this on demand tho and only apply it when it's requested.

2.- We don't have anyone working actively on this project anymore, if this is something you want to add yourself I'll be happy to assist.

3lvis avatar Oct 04 '20 09:10 3lvis