JetBrains / JetBrainsRuntime

Runtime environment based on OpenJDK for running IntelliJ Platform-based products on Windows, macOS, and Linux
GNU General Public License v2.0
1.32k stars 196 forks source link

Stylus events doesn't work with Swing on Windows #467

Open MohamedRejeb opened 3 weeks ago

MohamedRejeb commented 3 weeks ago

It looks like linking windows window to stylus breaks pen events for swing. It works fine with openJDK but not JBR. Try running the swing demo here on windows with openJDK and JBR. You will notice that tablet stylus can't interact with swing components.

https://github.com/lectureStudio/stylus

mkartashev commented 2 weeks ago

I'm not sure I understand. Do you mean that the stylus library doesn't work with JBR, but works with OpenJDK? What about platforms other than Windows, does it work there?

MohamedRejeb commented 2 weeks ago

Is the issue happening only on Windows? Yes.

Does the library and the stylus listener work? Yes it works fine even with JBR.

The problem is with normal swing components and normal swing mouse listener, for some reason it's so hard to click buttons with the pen. It works fine with OpenJDK. The problem happens only after linking the window to the stylus which is what this library does, Windows is dealing with the stylus differently when it's linked to the window.

mkartashev commented 2 weeks ago

It seems that the investigation should start with the library. Have you tried reporting it to their issue tracker?

vprovodin commented 2 weeks ago

Thanks for reporting this issue. Please follow the ticket https://youtrack.jetbrains.com/issue/JBR-7716 to track its status