hyperoslo/Lightbox

Add long press to LightboxControllerTouchDelegate

jmschonfeld opened this issue · 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?

3lvis commented

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.