Desktop: Touch slop support for touch devices on desktop platforms
Android uses specific distance to differentiate between touch drag and touch click (ViewConfiguration.touchSlop).
On desktop we significally decrease the touch slop in https://android-review.googlesource.com/c/platform/frameworks/support/+/1698450.
Unwanted drags on desktop are usually prevented by the friction between mouse and surface.
The open question - should we use a different touch slop when we use a touch screen on desktop? (for example on Microsoft Surface)
We should investigate on the real touch devices:
- to know if touch slop is implemented on the driver level, or not
- if not - should we use a bigger slop in Compose
- to know how macOs/Windows/Linux handle this
See also: https://github.com/JetBrains/compose-jb/issues/343 https://github.com/JetBrains/compose-jb/issues/325 https://issuetracker.google.com/issues/187330496
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.