If a device supports touch events, Wikipedia Preview assumes that it's a touch-only, smaller-screen mobile device.
However, laptops with touchscreens support touch events, so Wikipedia Preview treats them as mobile devices. This has three problems:
- Previews don't show when the user hovers a cursor on the link
- Clicking leads you to the mobile site, not the main site.
- Previews are too wide. Here's an example based on a 1200x800 screen:
On a random day (2023-03-15), such touchscreen computers accounted for 25% of touch-device previews and 3% of all previews (source). And these computers probably account for a greater fraction of devices seeing Wikipedia Preview links, because previewing is much easier and more discoverable when you can do it just by hovering.
Useful references:
- https://hacks.mozilla.org/2013/04/detecting-touch-its-the-why-not-the-how/
- https://developer.mozilla.org/en-US/docs/Web/API/Touch_events/Supporting_both_TouchEvent_and_MouseEvent
QA Results - Demo
AC | Status | Details |
---|---|---|
1 | ✅ | T257574#10028973 |