Dragging gesture is consumed when used in scrollable composable
- Dominant language
- Java
- Stars
- 18.8k
- Forks
- 3.9k
- PR merge metrics
- No merged PRs in 30d
Description
## 🐛 Bug Report
When the PhotoView is used in a scrollable composable, the PhotoView and Compose don't communicate the dragging events properly, and so the composable doesn't scroll as it should. When dragging some other part of the composable, scrolling works.
TBH, this sounds like a Compose issue, so I also made a ticket for them: https://issuetracker.google.com/issues/220919265
### Expected behavior
When dragging on PhotoView which is in scrollable composable, the composable can be scrolled.
### Reproduction steps
You can checkout [this minimal repo](https://github.com/haluzpav/ComposePhotoView).
The problem lies in this:
```kotlin
Column(modifier = Modifier.verticalScroll(...)) {
AndroidView(factory = { context -> PhotoView(context) })
}
```
Also, a video. The problematic Compose behavior starts at 0:16. Before that, you can see the expected behavior in Views.
https://user-images.githubusercontent.com/24211726/155380978-0ea22f31-5557-4940-9a79-94a396ed0696.mp4
### Configuration
**Version:** 2.3.0
**Platform:** :robot: Android 11
Contributor guide
Assessment
This issue has not been assessed yet.