dragdealer icon indicating copy to clipboard operation
dragdealer copied to clipboard

Add option to control friction when slide=true

Open R2D221 opened this issue 9 years ago • 2 comments

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.

R2D221 avatar Jun 10 '15 18:06 R2D221

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 :thought_balloon:

ovidiuch avatar Jun 10 '15 22:06 ovidiuch

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.

kaigth avatar Dec 04 '15 22:12 kaigth