tiny-pilot / tinypilot

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

Emulate double click from touch devices #1787

Closed jotaen4tinypilot closed 5 months ago

jotaen4tinypilot commented 5 months ago

Resolves https://github.com/tiny-pilot/tinypilot/issues/1781.

This PR improves double-click emulation so that both of the consecutive mouse (touch) events have the exact same location. On a touch device, you might otherwise accidentally direct the second click to a slightly different location, or the target operating system might not even recognise both clicks as proper double click.

Notes

I’ve tested with this on an iPad, so from my side a pure code review would suffice.

Review on CodeApprove

jotaen4tinypilot commented 5 months ago
Automated comment from CodeApprove ➜

⏳ @jdeanwallace please review this Pull Request