multivnc icon indicating copy to clipboard operation
multivnc copied to clipboard

Panning with physical mouse much slower than with Touch input

Open bk138 opened this issue 3 years ago • 0 comments

Problem statement

Both input ways use panToMouse() but:

  • touch input is relative and is allowed to move off screen, this way increasing the delta that gets computed in panToMouse()
  • physical mouse input can by definition not move off screen as it's absolute, so the delta is always 5, which is way too slow.

Possible Solutions

  1. Increase the hardcoded delta? (but touch relative input will be faster, too fast?)
  2. Disallow relative/touch input to go offscreen? Would be here. This would make pan speed the same for relative and absolute input. But actually, higher pan speed by higher touch/relative fling speed is a feature which makes the app feel snappier.
  3. Somehow set a flag for absolute input and make pan speed higher depending on that?

bk138 avatar Jul 07 '22 19:07 bk138