HumbleUI / JWM

Cross-platform window management and OS integration library for Java
Apache License 2.0
571 stars 46 forks source link

X11: reset scroll distance after re-entering window #220

Closed dzaima closed 2 years ago

dzaima commented 2 years ago

Does the same thing as other apps, resetting the scrolled distance every time the window is re-entered.

tonsky commented 2 years ago

Thanks! I was unable to repro this on Ubuntu, I guess it already accounts for that. First scroll is indeed ignored

dzaima commented 2 years ago

Huh. May be possible to check for OS versions or something, but I don't know how would one go about doing that, and it's not really worth it to save that single scroll event. (didn't ubuntu switch to wayland though, meaning JWM runs on xwayland, which'd do different things than a global X server? Even then, there may still be issues with two open JWM windows within the same Java/X instance)

tonsky commented 2 years ago

I don’t think it’s worth saving. I has tested on X11 Ubuntu, not on Wayland