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

Dynamic drag speed for both long and short lists #14

Closed
ibraheem-nt opened this issue Nov 13, 2019 · 1 comment
Closed

Dynamic drag speed for both long and short lists #14

ibraheem-nt opened this issue Nov 13, 2019 · 1 comment

Comments

@ibraheem-nt
Copy link

ibraheem-nt commented Nov 13, 2019

I am using the selector for long lists (more than 80 items). What I had to do to support better navigation is to dynamically modify the drag speed multiplier from this:

dragDy * widget.dragSpeedMultiplier);

To this:
dragDy * (widget.dragSpeedMultiplier * (_currentList.items.length/11)));

@vizhan-lanars
Copy link
Collaborator

@ibraheem-nt I guess you can achieve that by modifying the dragSpeedMultiplier parameter.

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