I'm trying to set a slider (actually a kitchen timer) using a pan gesture in ionic2 see: http://ionicframework.com/docs/v2/components/#gestures
The slider/timer has an open upper-bound that could be set by a panright, but go down to zero on a panleft.
How can I best translate the pan event to be speed-sensitive to allow an upper bounds near 36000 but sensitive enough to set increments as small as 10? The max deltaX would be around 400px, but I suppose the user could use a few pan gestures to reach a large value.
Is there some ready-built easing function that I can use to achieve this?
deltaXandvelocityXparams given by hammer ? Then compute your transformation through an easing curve of your choice - Something like easing-in while "paning", and easing-out then.