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

Force gallery navigation arrows to always display #68

Open
jayzambrano opened this issue Sep 25, 2024 · 1 comment
Open

Force gallery navigation arrows to always display #68

jayzambrano opened this issue Sep 25, 2024 · 1 comment

Comments

@jayzambrano
Copy link

Hello and thanks for this library, it's always a great solution!

I see that the rendering of leftArrowBtn and rightArrowBtn depends on the 'supportsTouch' variable. I have a scenario on mobile where it is not obvious to the user that there are more images, so even though the device supports touch events, I would still like to display the previous and next arrows. Is there an option to achieve this?

@henrygd
Copy link
Owner

henrygd commented Sep 25, 2024

I don't think so. If you want to make a PR that adds an arrows option and updates the logic for displaying the buttons then I'm open to merging that.

Otherwise I recommend checking out bigger-picture, which does show the arrows by default and also lets you pinch zoom on mobile: https://github.com/henrygd/bigger-picture

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