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

Is there a way to disable scrolling to the next screen: only go to next screen on key press #66

Closed
jfx1026 opened this issue Mar 29, 2017 · 3 comments

Comments

@jfx1026
Copy link

jfx1026 commented Mar 29, 2017

I don't know if this is the right place to ask this question, so I apologize up front if I am wrong.

I love Webslides, it's easy and awesome.

My client is putting a little too much on some screens and some of our users aren't super web savvy. They are scrolling wildly, and flying around the presentation.

Is there a way to disable the scroll to next screen functionality.
Users would be able to use the arrow keys and on screen links to get around.

@Antonio-Laguna
Copy link
Member

This is an interesting question.

We'll add an option to disable it but as a workaround in the meantime you can put this:

WebSlides.registerPlugin('scroll', function(){});

Before actually creating the WebSlides instance. So the full code should be (if you take it from one of our demos)

<script src="static/js/webslides.js"></script>
<script>
  WebSlides.registerPlugin('scroll', function(){});
  window.ws = new WebSlides();
</script>

This will register a scroll plugin with an empty function which will effectively disable the scroll behaviour. Hope it helped!

@jfx1026
Copy link
Author

jfx1026 commented Mar 30, 2017

Perfect! This helps a ton.

@Antonio-Laguna
Copy link
Member

Still like to offer a better way to this

@Antonio-Laguna Antonio-Laguna modified the milestone: 1.4.0 Apr 20, 2017
Antonio-Laguna added a commit that referenced this issue Aug 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants