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 scrolling #101

Closed
asmeurer opened this issue Apr 6, 2014 · 12 comments
Closed

Disable scrolling #101

asmeurer opened this issue Apr 6, 2014 · 12 comments

Comments

@asmeurer
Copy link

asmeurer commented Apr 6, 2014

Would it possible to disable scrolling, at least by default? If I accidentally move two fingers across my touchpad it will move me away several slides.

@gnab
Copy link
Owner

gnab commented Apr 6, 2014

Rather than disabling scrolling by default, I would suggest making it configurable, i.e.:

var slideshow = remark.create({
  navigation: {
    scroll: false
  }
});

The navigation field is currently not supported, but could be used to disable the different ways of navigating individually.

What do you think about such a solution?

@asmeurer
Copy link
Author

asmeurer commented Apr 6, 2014

That's fine, but I would make false the default. Unless I'm missing an important use case.

@gnab
Copy link
Owner

gnab commented Apr 6, 2014

Well, the use case is navigating like you would in most other slideshow tools, which usually supports both keys, scroll and more.

I'll add support for the option, so you can disable scrolling in your slideshows, but I'll leave scrolling enabled for now. Maybe I'll make it disabled by default at a later point.

@gnab
Copy link
Owner

gnab commented Apr 6, 2014

I just released a version 0.6.3 that includes support for the navigation configuration field discussed above.

@gnab
Copy link
Owner

gnab commented Apr 6, 2014

The configuration options wiki page has been updated accordingly.

@asmeurer
Copy link
Author

asmeurer commented Apr 6, 2014

I'm all for using arrow keys, and I get that touch is important. But scrolling navigation isn't even workable anyway (it's very difficult top scroll just one slide). That could just mean it needs tweaking, though. Maybe something akin to what chrome or safari do when you scroll left or right to history navigate should work to move forward or backward slides.

@gnab
Copy link
Owner

gnab commented Apr 6, 2014

On my laptop's touchpad I have no problem scrolling a single slide at a time, so it may vary from one touchpad to another. But I agree it could perhaps be tuned to work even better, or perhaps even disabled at some point. At least it is now possible to disable scrolling completely.

@asmeurer
Copy link
Author

asmeurer commented Apr 6, 2014

For me going just one slide requires the smallest possible increment of scrolling. Additionally, Mac OS X's momentum scrolling makes just a regular swipe fly through dozens of slides.

@asmeurer
Copy link
Author

asmeurer commented Apr 6, 2014

By the way, how hard would it be to have a "latest" redirect so that I don't have to update the script in my slides every time you do a release?

@gnab
Copy link
Owner

gnab commented Apr 9, 2014

I've now added http://remarkjs.com/downloads/remark-latest.min.js that I'll keep up to date.

@gnab gnab closed this as completed Apr 9, 2014
@asmeurer
Copy link
Author

asmeurer commented Apr 9, 2014

Thanks.

@uglycoyote
Copy link

I agree with @asmeurer that the default behaviour is incredibly annoying on a MacBook. As he says, it is all too easy to accidentally fly through dozens of slides, and I am dreading this happening during an actual presentation.

I'm glad scrolling to flip pages can be disabled and tend to agree that it should be disabled by default if it is this poorly behaved.

Remark is great by the way!

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

3 participants