TurboVNC / turbovnc

Main TurboVNC repository
https://TurboVNC.org
GNU General Public License v2.0
761 stars 138 forks source link

Scroll wheel input inserted at wrong location when scaling factor is >100% #306

Closed birkenfeld closed 2 years ago

birkenfeld commented 2 years ago

I am using 150% scaling factor. Normal mouse clicks are processed fine, but scroll wheel input seems to be inserted at a different location from the current mouse cursor position. When I reset scaling to 100%, behavior is fine.

TurboVNC Viewer v2.2.6 (build 20211122) [JVM: amd64]

Let me know if I can anything more to debug this. Thanks!

dcommander commented 2 years ago

I will try to reproduce it.

birkenfeld commented 2 years ago

Looking at the code now, I see that CConn::writePointerEvent contains code to handle scaling while CConn::writeWheelEvent does not.

dcommander commented 2 years ago

Thanks for the diagnosis! I have integrated your fix into both the main (3.0) and 2.2.x branches. CI builds should be available shortly.