You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The gestures discussed here include scrolling and dragging. I haven't tested in other scenarios yet.
Regarding dragging: I implemented a native listener (using addGestureRecognizer attached to a UIView, which is rendered in Compose by UIKitView) and received one time UIGestureRecognizerStateBegan, two to three times UIGestureRecognizerStateChanged, and one time UIGestureRecognizerStateCancelled event. However, I didn't perform any cancelled operation, yet it was triggered.
Additionally, there's scrolling: For this, I've prepared reproducible code. I suspect it's the same issue, so I'm raising it in this issue together. But if you think these are two separate problems, please feel free to split this issue.
I'm rendering Compose content in a UIKitSheet, which has its own scrolling behavior, and this scrolling seems to interrupt Compose's scrolling. This issue is particularly noticeable in the new version, but it also occurs occasionally in the old version.
Gaubee
changed the title
On iOS platforms, Compose gestures conflict with native gestures.
On iOS platforms, Compose gestures(scroll or drag) conflict with native gestures.
Jun 25, 2024
Describe the bug
The gestures discussed here include scrolling and dragging. I haven't tested in other scenarios yet.
Regarding dragging: I implemented a native listener (using addGestureRecognizer attached to a UIView, which is rendered in Compose by UIKitView) and received one time UIGestureRecognizerStateBegan, two to three times UIGestureRecognizerStateChanged, and one time UIGestureRecognizerStateCancelled event. However, I didn't perform any cancelled operation, yet it was triggered.
Additionally, there's scrolling: For this, I've prepared reproducible code. I suspect it's the same issue, so I'm raising it in this issue together. But if you think these are two separate problems, please feel free to split this issue.
I'm rendering Compose content in a UIKitSheet, which has its own scrolling behavior, and this scrolling seems to interrupt Compose's scrolling. This issue is particularly noticeable in the new version, but it also occurs occasionally in the old version.
BugGestureDemo.zip
you can toggle the compose version in
libs.versions.toml
Their behavior is similar: the finger clearly hasn't left the screen, but the code thinks it has.
You can add clickable to the demo I provided, and you'll see that it's triggered click-event during scroll dragging.
Affected platforms
Versions
To Reproduce
Steps to reproduce the behavior:
Screenshots
cmp-1.6.11.mp4
cmp-1.7.0-dev1686.mp4
The text was updated successfully, but these errors were encountered: