compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Desktop: Touch slop support for touch devices on desktop platforms

Open igordmn opened this issue 4 years ago • 2 comments

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

igordmn avatar May 06 '21 12:05 igordmn

See also: https://github.com/JetBrains/compose-jb/issues/343 https://github.com/JetBrains/compose-jb/issues/325 https://issuetracker.google.com/issues/187330496

igordmn avatar May 06 '21 12:05 igordmn

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Aug 26 '24 17:08 okushnikov