From reading this, it sounds like we may already be doing something similar, 
but I thought I’d share this link anyway. So, I came across a JS library called 
Snap.js for building slide-out drawers that uses a formula to determine “slide 
intent”. This value is tweakable and their README has some interesting 
information on how it works:

https://github.com/jakiestfu/Snap.js/ <https://github.com/jakiestfu/Snap.js/>

Also, FWIW, I have always felt like our “swipe-to-kill” gesture was difficult 
to perform. Most of the time, I feel like the gesture is expecting either the 
swipe to be longer or faster than I normally do.

-Justin


> On Oct 16, 2015, at 11:51 AM, Marcus Cavanaugh <[email protected]> wrote:
> 
> On Fri, Oct 16, 2015 at 1:54 AM, Etienne Segonzac <[email protected] 
> <mailto:[email protected]>> wrote:
> The angle-based approach [1] we used for the edge gestures worked 
> surprisingly well (after a tiny 5px threshold) and it's super easy to 
> implement, worth trying!
> 
> For clarity: The current implementation calculates the Y-velocity, only 
> dismissing if the velocity is large enough. The reason the current 
> implementation didn't use an angle-based calculation is because I had wanted 
> to emulate iOS's physics-based behavior, in which you can drag a card upward 
> a long distance, hold it there, and let go, sending the card back down 
> without dismissing it. 
> 
> That said, I'm open to trying other approaches, and it's not hard to swap 
> them out, so whatever works best sounds great to me. :)
> 
> _______________________________________________
> dev-fxos mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-fxos

_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to