[spartacus] Use touch events where supported to improve click response times.

RESOLVED FIXED

Status

Marketplace
Payments/Refunds
P3
normal
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: scolville, Assigned: scolville)

Tracking

Avenir
x86
Mac OS X
Points:
---

Details

(Whiteboard: [qa-])

In the time it takes for the clicks to be registered sometimes the keyboard has moved and so the click is lost. We experienced this on webpay and the solution is to move to touch events.
I've used https://github.com/ftlabs/fastclick for personal projects. And I have a PR to use this on Fireplace: https://github.com/mozilla/fireplace/pull/488
(In reply to Christopher Van Wiemeersch [:cvan] from comment #1)
> I've used https://github.com/ftlabs/fastclick for personal projects. And I
> have a PR to use this on Fireplace:
> https://github.com/mozilla/fireplace/pull/488

Cool - nice suggestion, I like that it's a shim across everything. 

PR for spartacus is here: https://github.com/mozilla/spartacus/pull/77
Priority: -- → P3
Status: NEW → ASSIGNED
https://github.com/mozilla/spartacus/commit/41d00cce806791fdf37605529ff03dda4d3c92a9
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.