multivnc
multivnc copied to clipboard
Panning with physical mouse much slower than with Touch input
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
- Increase the hardcoded delta? (but touch relative input will be faster, too fast?)
- 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.
- Somehow set a flag for absolute input and make pan speed higher depending on that?