tiny-pilot / tinypilot

Use your Raspberry Pi as a browser-based KVM.
https://tinypilotkvm.com
MIT License
3.02k stars 252 forks source link

Touch input: support right click / context click #1782

Closed jotaen4tinypilot closed 5 months ago

jotaen4tinypilot commented 5 months ago

Related https://github.com/tiny-pilot/tinypilot/issues/270, see also our initial proof-of-concept.

When the TinyPilot web UI is used via a touch device (e.g., a tablet), there currently is no way to issue a right click or context click.

There is no clear way of emulating this via touch devices, because the concept of “right” click doesn’t exist there.

One potential solution could be to treat a long tap (i.e., tap and hold for ~1 second) as context click, if the position hasn’t changed significantly during the hold.