Revisit touch events for InstantClick (prefetch) feature #1410
indykoning
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
#1167 removed the touch listeners for good reason.
Though with more and traffic coming from mobile/touchscreen devices, which are unable to benefit from the prefetch behavior it might be a good idea to revisit adding touch support to it.
We might be able to to debounce the touchend event on a value, so if a mouseenter is triggered within e.g. 500ms of a touchend we will ignore the mouseenter.
Or perhaps detect the pointer type and add event listeners depending on that
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pointer
Beta Was this translation helpful? Give feedback.
All reactions