iiordanov / remote-desktop-clients

VNC, RDP, SPICE, and oVirt/RHEV/Proxmox Clients for Android and Blackberry 10
GNU General Public License v3.0
2.03k stars 562 forks source link

BUG: screen auto-scroll is lost when android keyboard is closed #561

Open AtmanActive opened 2 weeks ago

AtmanActive commented 2 weeks ago

Hi,

Thanks again for building this great software.

This is the bug I just stumbled upon using bVNC Pro on an Android tablet with a bluetooth mouse attached, controlling remote Windows 10 desktop:

  1. I use pinch-zoom to have the screen zoomed in a bit so I can read the letters from a screen with much bigger resolution (38" win10) on a small tablet (10" android12). All fine.
  2. I use a bluetooth-connected mouse to control the android/windows. bVNC correctly auto-scrolls the view every time the mouse pointer touches screen edges and there is more to show. So far so good.
  3. Now, I open the android on-screen keyboard to be able to type things, and, naturally, this keyboard shifts the remote desktop view a bit, making it smaller. Mouse pointer auto-scroll still works correctly. Great.
  4. Now I close the android on-screen keyboard which shifts the remote desktop view back, and ... my view is stuck! No auto-scroll working anymore. BVNC simply stops correctly tracking the mouse pointer versus remote screen size and the viewport is stuck. Can't nudge the screen in any direction anymore. Even though I can still use the remote desktop and click correctly everywhere. But the pan auto-scroll feature stops working.
  5. Then, I turn android on-screen keyboard back on again: now the auto-scroll works correctly again.

So there is some screen-size-to-viewport-size-recalculation call missing on on-screen-keyboard-close event, it seems.

Thanks.

AtmanActive commented 1 week ago

Just to add, when this condition happens, then, touchscreen panning still works as expected. Only the mouse pointer tracking panning UP stops working. In other words, I can pan the screen by moving the mouse pointer left and right, but when I move it up all the way to the top of the screen, the screen DOES NOT pan UP even though there is a part of the screen that's still hidden and it got hidden due to opening the android screen keyboard.