4 ms·
After a quick glimpse it seems this only supports simple actions upon registering a gesture, however it should be possible to extend for that use-case. To abst
by pph 5y ago
After a quick glimpse it seems this only supports simple actions upon registering a gesture, however it should be possible to extend for that use-case.
To abstract it a bit:
You would need to
1. Trigger an event on the gesture start (detect 3 fingers -> hold alt, mousedown)
2. Have mouse movement enabled
3. Trigger another event on gesture end (lift fingers -> mouseup, lift alt).
- ComputerGuru 5y agoYou’re correct, but in all honestly the devil is in the details. The difficulty here being in determine if a three-finger gesture has started or if it’s actually a three-finger gesture on its way into becoming a four-finger gesture - the sort of issue that plagues first input delay on mobile devices because it’s not clear if a tap is a “tap to scroll” or “tap going to become a pinch to zoom.” The solution is simple but somewhat ugly, just like on Android and iOS: set a maximum time limit (up to 250ms) before going with the number of fingers detected. Also, I’m not sure if macOS is distinguishing between tap and click? The online documentation says it’s with force click enabled.