On Fri, Oct 16, 2015 at 1:54 AM, Etienne Segonzac <[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

