diff options
| author | Joren Van Onder <jov@odoo.com> | 2017-02-01 20:00:40 -0800 |
|---|---|---|
| committer | Joren Van Onder <jov@odoo.com> | 2017-02-02 09:46:48 -0800 |
| commit | c0817016d2523d0078bf3e7e94a2aa9d9048d598 (patch) | |
| tree | a80bb2b9e37c58d4521c0606ee2ab812d5b60a60 /addons/web/static/src/xml/base.xml | |
| parent | e3232c85b97fb727f3f64f1569bf2c24362ba332 (diff) | |
[FIX] point_of_sale: fix country selection on touch events
The POS uses FastClick to circumvent the 300ms touch delay implemented
by browsers before a click event is fired. (Although this has since been
removed, probably we can get rid of this in the POS at some point as
well [1]).
The way FastClick works is simple: immediately fire a synthetic event
and block the one fired by the browser 300ms later.
Recently, browsers have started to only trust native events to trigger
default actions [2][3]. Chrome in particular has started not trusting
synthetic events since v53.
FastClick provides a solution for this with the needsclick class. It
will not interfere with events triggered on elements with this class.
[1] https://developers.google.com/web/updates/2013/12/300ms-tap-delay-gone-away
[2] https://w3c.github.io/uievents/#trusted-events
[3] https://www.chromestatus.com/features/5718803933560832
Fixes #14886
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
0 files changed, 0 insertions, 0 deletions
