Skip to content
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

[Desktop] Mouse wheel-scrolling a JScrollPane stops when cursor is over a ComposePanel #4601

Open
rock3r opened this issue Apr 10, 2024 · 2 comments
Labels
bug Something isn't working desktop input Touch, mouse, keyboard input related

Comments

@rock3r
Copy link
Contributor

rock3r commented Apr 10, 2024

Describe the bug
If you have a JScrollPane with a ComposePanel in it, and use the mouse wheel or trackpad to scroll the scrollpane, when the mouse cursor is over the ComposePanel, the JScrollPane doesn't scroll anymore.

It looks as if the ComposePanel were swallowing scroll events, even if its contents aren't scrollable.

Affected platforms

  • Desktop (Windows, Linux, macOS)

Versions

  • Kotlin version*: 1.9.23
  • Compose Multiplatform version*: 1.6.10-dev1561
  • OS version(s): macOS 14.4.1
  • OS architecture (x86 or arm64): arm64
  • JDK (for desktop issues): JBR 17 (latest)

To Reproduce

  1. Clone https://github.com/rock3r/cfd-repros/
  2. Run NoScrollingOnComposePanel.kt
  3. Try scrolling the JScrollPane and notice it stops when the mouse pointer is over a ComposePanel

Expected behavior
Scrolling should not stop

@rock3r rock3r added bug Something isn't working submitted labels Apr 10, 2024
@MatkovIvan MatkovIvan added input Touch, mouse, keyboard input related desktop and removed submitted labels Apr 10, 2024
@rock3r
Copy link
Contributor Author

rock3r commented May 22, 2024

@MatkovIvan I just saw this happen on a webpage, too: https://www.composablesui.com/components/multiplatform/buttons

Chrome, Android 14 (@alexstyl mentioned it working on web on desktop for him)

screen-20240522-191023.mp4

@MatkovIvan
Copy link
Member

@rock3r I believe it's similar, but not the same - it should be handled in platform implementation with all of its specifics. Let's keep this issue for tracking the problem in swing panel implementation only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working desktop input Touch, mouse, keyboard input related
Projects
None yet
Development

No branches or pull requests

2 participants