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

Add option to control friction when slide=true #91

Open
R2D221 opened this issue Jun 10, 2015 · 2 comments
Open

Add option to control friction when slide=true #91

R2D221 opened this issue Jun 10, 2015 · 2 comments

Comments

@R2D221
Copy link

R2D221 commented Jun 10, 2015

I'm using DradDealer for a gallery similar to the cars demo. However, I've noted that swiping is too slow, because the range for sliding is low.

I've found in the source code the following commands:
target[0] += ratioChange[0] * 4;
target[1] += ratioChange[1] * 4;

The number 4 is the value I'm looking for, and changing its value to something bigger gives me the effect I want.

It would be nice that instead of editing the source code, it was provided as a customizable option.

@ovidiuch
Copy link
Owner

Agreed. Feel free to contribute if you have an idea of how to call it. Can't think of a good, simple name right now to be honest 💭

@kaigth
Copy link

kaigth commented Dec 4, 2015

I have added inertia to my most recent PR for this project, this allows you to control how fast the throw action occurs and can now be sped up or reduced.

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