Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable Gesture Control #1906

Open
ems316 opened this issue Oct 11, 2024 · 0 comments
Open

Configurable Gesture Control #1906

ems316 opened this issue Oct 11, 2024 · 0 comments

Comments

@ems316
Copy link

ems316 commented Oct 11, 2024

Is your feature request related to a problem? Please describe.
I would like to have control over the behavior of the longpress gesture.

Describe the solution you'd like
Instead of sending a right button down event to my vnc server, I would like to send a left button down event so that longpress is a hold on my vnc server rather than a right click.

noVNC/core/rfb.js

Lines 1282 to 1285 in ed1fef4

case 'longpress':
this._fakeMouseMove(ev, pos.x, pos.y);
this._handleMouseButton(pos.x, pos.y, true, 0x4);
break;

I think it would be beneficial to have an option that allows a user to configure the behavior of the longpress gesture. The suggested feature might add a flag in this location that either sends the bitmask 0x1 (longpress as hold) or bitmask 0x4 (longpress as right click) depending on how the flag is set.

Describe alternatives you've considered
N/A

Additional context
#417 considers using a gui element to configure this functionality. I would just like to be able to configure it via a cli option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant