When tapping the device to click, the sharp acceleration spike probably feeds into the gravity-based axis decomposition and moves the cursor before the tap is recognized. The cursor shoots in the tap direction which throws the cursor off.
There's some HW based detection already going on in the built-in IMU, but I'm not using it fully, it works using interrupts. It might be useful to introduce a threshold since the tap should have much faster acceleration anyways; Compared to normal mouse movement, it appears to be at the very least 20x the normal rate, maybe we could do jerk detection - https://en.wikipedia.org/wiki/Jerk_(physics)
When tapping the device to click, the sharp acceleration spike probably feeds into the gravity-based axis decomposition and moves the cursor before the tap is recognized. The cursor shoots in the tap direction which throws the cursor off.
There's some HW based detection already going on in the built-in IMU, but I'm not using it fully, it works using interrupts. It might be useful to introduce a threshold since the tap should have much faster acceleration anyways; Compared to normal mouse movement, it appears to be at the very least 20x the normal rate, maybe we could do jerk detection - https://en.wikipedia.org/wiki/Jerk_(physics)
nikrozman
added this to the Software project 2026-03-01 23:18:41 +01:00
nikrozman
moved this to To Do in Software on 2026-03-02 20:24:00 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
When tapping the device to click, the sharp acceleration spike probably feeds into the gravity-based axis decomposition and moves the cursor before the tap is recognized. The cursor shoots in the tap direction which throws the cursor off.
There's some HW based detection already going on in the built-in IMU, but I'm not using it fully, it works using interrupts. It might be useful to introduce a threshold since the tap should have much faster acceleration anyways; Compared to normal mouse movement, it appears to be at the very least 20x the normal rate, maybe we could do jerk detection - https://en.wikipedia.org/wiki/Jerk_(physics)
https://www.st.com/en/mems-and-sensors/lsm6ds3tr-c.html