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

Disable scroll on mobile but keep "instant move" buttons #401

Open
pandalion opened this issue May 28, 2020 · 0 comments
Open

Disable scroll on mobile but keep "instant move" buttons #401

pandalion opened this issue May 28, 2020 · 0 comments

Comments

@pandalion
Copy link

Hi, I don't know if this is possible.
On mobile I want to disable the physical scrolling action, because I have content that needs to scroll within the view (like an inner scrollable div), therefore I don't want the scroll action to change sections.

I can disable this fine with scrollify.disable() on window resize, not a prob.

However I have back and forth buttons, that go between slides with $.scrollify.instantNext(); and $.scrollify.instantPrevious(); I really want to still use these on mobile but I am not sure how to.

I am considering enabling scrollify only when I press the button, but then I have to disable it again right away, is there a better way?
Thanks!

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

1 participant