-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
detectDragGesture is unusable on Desktop #343
Comments
Thanks for the report! Temporary solution - wrap top-level composable to this:
P.S. Touch slop should be available with touch screens on desktop, and on android there should be not touch slop if we use mouse. So the temporary solution should be removed from the client code once the issue will be resolved. |
Hi |
Update, possibly we should use CompositionLocalProvider cause Provider is unavailable |
This seems to work now on my windows PC. Does anyone still have the issue? |
It should be fixed, yes |
In JetBrains/compose-multiplatform-core#296 I accidentally pushed the wrong fix, which doesn't work. Thanks Alexander Maryanovsky pointed at this [here](https://kotlinlang.slack.com/archives/C01D6HTPATV/p1670249182045759?thread_ts=1669996652.181129&cid=C01D6HTPATV)
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks. |
Hi folks.
Found one interesting thing.
If you try to use detectDragGesture in pointerInput it wouldn't work on desktop cause of huge value of touchSlop configured in androidx.compose.ui.platform.DesktopViewConfiguration.
Every time i had try to drag something i run into awaitTouchSlopOrCancellation and then check
if (distance >= touchSlop)
allways fail cause distance (1~3) is allways less then value of touchSlop (its 18).The text was updated successfully, but these errors were encountered: