4 ms·
Okay, I think I have a decent working solution for the scrolling actions accidentally triggering the switches. Basically, if the action is more of a quick vert
by arthurhur 3y ago
Okay, I think I have a decent working solution for the scrolling actions accidentally triggering the switches.
Basically, if the action is more of a quick vertical swipe, it resets the switch to the previous state (so if delta of y > delta of x, then undo, unless the user has been dragging for over 1500 ms). Hopefully this solves the mistaken swiping issue.
For context, it took me a couple different approaches to get it right, mostly because it seems like iOS doesn't support a lot of the Touch API capabilities in browsers like force, etc. Also, if you're on Android, I added a tiny vibrate as you tick up or down your marq – I haven't been able to test it out, but if you're on an Android, please let me know if a) it's working, and b) if the vibrate length feels right (10 ms), and I will adjust as needed.
Thank you!