Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add long press to LightboxControllerTouchDelegate #256

Open
jmschonfeld opened this issue Jul 26, 2020 · 1 comment
Open

Add long press to LightboxControllerTouchDelegate #256

jmschonfeld opened this issue Jul 26, 2020 · 1 comment

Comments

@jmschonfeld
Copy link

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
Copy link
Collaborator

3lvis commented Oct 4, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants