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

Long press to right-click on touch devices? #417

Closed
samhed opened this issue Nov 24, 2014 · 8 comments
Closed

Long press to right-click on touch devices? #417

samhed opened this issue Nov 24, 2014 · 8 comments
Labels

Comments

@samhed
Copy link
Member

samhed commented Nov 24, 2014

Currently on touch devices noVNC will present a toggle button in the top control bar:

The user has to press the button to toggle between which mouse button he or she wants to send.

An alternative would be to use a long-press touch to right click. I would like to gather some opinions regarding this, what do you guys prefer?

@samhed
Copy link
Member Author

samhed commented May 20, 2015

I like the current behavior and can't think of a better alternative atm.

@samhed samhed closed this as completed May 20, 2015
@kanaka
Copy link
Member

kanaka commented May 21, 2015

Yep, one problem is that long-click might be used by an application on the server-side. We could make a hot-key that would switch modes, but we would probably need to make it configurable just in case it collided with something the user actually wants to send.

@Russell-Jones-OxPhys
Copy link

Pop up a menu that says "right click|send long click"? Or make the button toggle between long press to long press and long press to right click modes. I'd suggest a pic for each mode, a finger on a tablet and the one above.

@DirectXMan12
Copy link
Member

Pop up a menu that says "right click|send long click"? Or make the button toggle between long press to long press and long press to right click modes. I'd suggest a pic for each mode, a finger on a tablet and the one above.

I actually really like this idea -- long-press has become the defacto replacement for right-click on mobile devices (phones and tablets), and allowing right-clicks without having to go and press a separate button would be nice.

Since we're actively discussing, I'm going to reopen and remove "wontfix"

@samhed
Copy link
Member Author

samhed commented May 27, 2015

How could such a menu be realized graphically? I already think that we are close to having too many buttons in the control-bar on touch devices.

@DirectXMan12
Copy link
Member

How could such a menu be realized graphically?

Don't do a menu -- just replace the click-selector-button with a long-press-to-right-click button (although we may still need a click-selector button to select middle click).

@samhed
Copy link
Member Author

samhed commented May 28, 2015

Hm, and I think we need the "no button selected" mode as well, see #281

Maybe there is some way we can integrate this long-press-toggle behavior with the current click-selector-button?

Or possibly something similar to what we have for the extra keys on small screens:

small-open

@samhed
Copy link
Member Author

samhed commented Oct 7, 2016

I'm satisfied with my idea of having a long-press-to-right-click built in to a future more generic toggle for touch gestures. It's not something I will get to work on right know, so if you have any ideas w.r.t this I wrote down some basis for discussion in our google groups page: https://groups.google.com/forum/#!topic/novnc/2rdr_ZxP1rA

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

No branches or pull requests

4 participants