Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop: Touch slop support for touch devices on desktop platforms #644

Closed
igordmn opened this issue May 6, 2021 · 2 comments
Closed

Desktop: Touch slop support for touch devices on desktop platforms #644

igordmn opened this issue May 6, 2021 · 2 comments
Assignees
Labels
desktop input Touch, mouse, keyboard input related

Comments

@igordmn
Copy link
Collaborator

igordmn commented May 6, 2021

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 igordmn added input Touch, mouse, keyboard input related desktop labels May 6, 2021
@igordmn
Copy link
Collaborator Author

igordmn commented May 6, 2021

@igordmn igordmn changed the title Desktop: Touch slop support for touch devices on desktop platforms. Desktop: Touch slop support for touch devices on desktop platforms May 6, 2021
@okushnikov
Copy link
Collaborator

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

@JetBrains JetBrains locked and limited conversation to collaborators Dec 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
desktop input Touch, mouse, keyboard input related
Projects
None yet
Development

No branches or pull requests

2 participants