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

Some way to more reliably simulate double-clicks on mobile #8

Open
mihaip opened this issue Mar 31, 2022 · 3 comments
Open

Some way to more reliably simulate double-clicks on mobile #8

mihaip opened this issue Mar 31, 2022 · 3 comments
Labels
Mobile Making the UI more mobile-friendly

Comments

@mihaip
Copy link
Owner

mihaip commented Mar 31, 2022

Can we detect double-clicks ourselves (with more tolerance) and tweak the coordinates that we sent to BasiliskII to snap them to the previous ones?

@mihaip mihaip added the Mobile Making the UI more mobile-friendly label Dec 30, 2022
@mihaip
Copy link
Owner Author

mihaip commented Mar 26, 2023

PCjs appears to have a slightly different approach, where touches drive a virtual trackpad instead (code entrypoint, blog post).

@that-ben
Copy link

It's honestly not that bad already, but it's true that if you have a shaky finger, then it's easy to not precisely tap twice on the same exact spot, which Mac OS will then not detect as a double click but rather just 2 separate clicks or even a very brief drag operation. Perhaps make some sort of timer where if 2 taps were done in less than 0.1 second and if the coordinates are less than 5% apart, then snap the second tap coords to the first tap ones, which will result in a double click in Mac OS.

@mihaip
Copy link
Owner Author

mihaip commented Apr 8, 2023

Could also experiment with pointer events (to unify the mouse and touch code paths). Per Amit they are much simpler.

mihaip added a commit that referenced this issue Mar 2, 2024
Reduces the divergence between mobile and desktop code paths.

Updates #291
Updates #8
mihaip added a commit that referenced this issue Mar 5, 2024
For emulators that support relative mouse movement (all but Mini vMac),
add the option of using a virtual trackpad for better control on touch
screens. In addition to tapping for clicks, it also supports a drag
lock mode easier dragging and pre-Mac OS 8 drop-menus.

Fixes #291
Updates #8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mobile Making the UI more mobile-friendly
Projects
None yet
Development

No branches or pull requests

2 participants