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
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.
Since this doesn't get any attention and probably never will, I'll mention that there's now Compose implementation of basically the same thing to PhotoView - https://saket.github.io/telephoto/. It has no scrolling issues, even when used inside of scrolling Views.
🐛 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:
Also, a video. The problematic Compose behavior starts at 0:16. Before that, you can see the expected behavior in Views.
device-2022-02-23-184007.mp4
Configuration
Version: 2.3.0
Platform: 🤖 Android 11
The text was updated successfully, but these errors were encountered: