Dragging gesture is consumed when used in scrollable composable
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- mobile-dev
Research direction
Start by reproducing the issue with the linked minimal ComposePhotoView repository, focusing on Column with Modifier.verticalScroll and AndroidView wrapping PhotoView. Compare the dragging behavior with the referenced Compose issue and the expected Views behavior. Done means dragging on PhotoView allows the surrounding scrollable composable to scroll.
Written by the indexing model from the issue text.
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.
The problem lies in this:
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.
Configuration
Version: 2.3.0
Platform: 🤖 Android 11
- Dominant language
- Java
- Stars
- 18.8k
- Forks
- 3.9k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Baseflow/PhotoView
-
Pohen Open
Difficulty 4/5 3-5 days Newbie friendliness 15/100
-
Khan Open
Difficulty 4/5 3-5 days Newbie friendliness 15/100
-
. Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
-
842 Open
Difficulty 1/5 Under an hour Newbie friendliness 10/100
-
Ok Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
All issues in Baseflow/PhotoView
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100