API Reference
isCoarsePointer
Internal helper for deciding when the environment should be treated as coarse-pointer oriented.
isCoarsePointer
isCoarsePointer is an internal environment helper.
Public status
It lives in src/utils, but it is not exported by the package root. Treat it as internal runtime reference.
What it checks
The current implementation combines:
matchMedia('(pointer: coarse)')matchMedia('(pointer: fine)')- viewport width
navigator.maxTouchPoints
Current behavior
- if a fine primary pointer is clearly detected, it returns
false - narrow screens are treated as coarse
- touch capability is used as fallback when the pointer media queries are not decisive
Why it exists
This helps the runtime avoid simplistic mobile detection and better decide when touch-oriented behavior should win.