On Fri, Oct 16, 2015 at 3:32 AM, Marcus Cavanaugh <[email protected]> wrote:

> As Sam and others mentioned, there's a lot of literature on how to best
> recognize swipes in varying directions. The true limiting restriction here
> is in the need to have native scrolling (for performance) with somewhat
> unique constraints and limitations.



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!

[1]
https://github.com/mozilla-b2g/gaia/blob/20f795aaa4c98a87b8fb595a3dbaa91c340d0fc3/apps/system/js/edge_swipe_detector.js#L353-L358
_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to