mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-19 23:05:21 +00:00
* feat(desktop): size controls by the primary pointer, not any touch screen The desktop app gave touch-sized controls to every machine with a touch screen, including Windows laptops driven by a trackpad. In Electron, ask whether a mouse-like primary pointer drives the UI instead: Chromium reports a fine primary pointer for those laptops and a coarse one for a tablet with no mouse or trackpad attached. Browsers and native keep the touch-screen check, so an iPad keeps touch sizes with a trackpad attached. Swipe gestures still follow the touch-screen capability. Refs #9892 * feat(app): size controls by the primary pointer on every platform Replace the Electron-only check with one rule everywhere: touch-sized when touch is the primary input, `(pointer: coarse)`, rather than when a touch screen exists at all. WebKit keeps touch primary on an iPad with a trackpad attached, so iPad Safari stays touch-sized; Chromium reports a fine primary pointer for a touch-screen laptop driven by its trackpad, in the browser and the desktop app. Native is always touch-sized. `hasTouchScreen()` and its `maxTouchPoints` fallback had no other caller and are removed. Swipe gestures still follow the touch-screen capability. Refs #9892 * test(app): exercise pointer sizing through the media source * test(app): cover touch laptops with a primary pointer --------- Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>