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

Instant response when pressing arrow keys to move to another section/slide #4234

Closed
quickfiredigital opened this issue Jun 28, 2021 · 5 comments

Comments

@quickfiredigital
Copy link

On line 2283 of fullpage.js, there is a setTimeout of 150 and was wondering if I were to change this to 0, so there is no delay, would it have any other adverse effects on anything else?

If not... is it possible to add a variable to control this delay.

@alvarotrigo
Copy link
Owner

On line 2283 of fullpage.js, there is a setTimeout of 150 and was wondering if I were to change this to 0, so there is no delay, would it have any other adverse effects on anything else?

The question is, why would you be interested in removing it?

@quickfiredigital
Copy link
Author

The reason why I would like to reduce this is because I would like a snappier response time when using the arrow keys to scroll down. As it stands, although relatively minor, there is a noticeable delay and would like it to be instant. However I do not want to remove this if it causes any other issues.

@alvarotrigo
Copy link
Owner

The reason why I would like to reduce this is because I would like a snappier response time when using the arrow keys to scroll down. As it stands, although relatively minor, there is a noticeable delay and would like it to be instant. However I do not want to remove this if it causes any other issues.

It won't be instant even when you remove the delay.
You won't be allowed to scroll down unless the section has completely finished moving.

@alvarotrigo
Copy link
Owner

I'll mark it as a possible enhancement.
We can perhaps create an option to define if we want an instant response with keyboard or not.

@alvarotrigo alvarotrigo changed the title Delayed response of scroll Instant response when pressing arrow keys to move to another section/slide Aug 29, 2021
@alvarotrigo
Copy link
Owner

Fixed on v4! 👍

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