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

MouseWheel Scroll speed #16

Open
RaXaR opened this issue Nov 1, 2011 · 2 comments
Open

MouseWheel Scroll speed #16

RaXaR opened this issue Nov 1, 2011 · 2 comments

Comments

@RaXaR
Copy link

RaXaR commented Nov 1, 2011

The MouseWheel Scroll speed is very slow (tiny increments). What would be the best approach to increase it? OR could you implement a property like 'arrows' to set it.?

@hLittle
Copy link

hLittle commented Nov 1, 2011

I just recently encountered this problem and I solved it by adding a line of code to the onMouseWheel function that multiplies delta by the scrollStep property to increase the mouse wheel speed:

onMouseWheel: function(ev, delta){

delta *= this.opts.scrollStep; //added line here
this.handle.top -= delta;

...
}

@RaXaR
Copy link
Author

RaXaR commented Nov 1, 2011

Ah yes, that worked beautifully thank you very much.

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