[Userscript] Lessons touchpad swipe navigation



Some time ago I got inspired by OS X mail app where you could use two fingers on touchpad and swipe mail to side to move it to archive. I thought that having gesture like that on WaniKani during doing your lessons for navigation could be awesome, so I implemented it. Today I discovered many user scripts from WK community which I enjoy a lot, so I decided to share my little script with you :slight_smile:

Here you are: https://greasyfork.org/en/scripts/24424-lessons-touchpad-swipe-navigation

Touchpad handling in browser is a big pain. One quick swipe on touchpad causes dozens (or even hundreds) scroll events which are emitted for about second or two. Thatโ€™s why I implemented the cooldown before swiping (of about 2 seconds) - quick, simple and ugly solution. I think that 2 secs is quite rational time (who memorizes mnemonics faster?).

If someone wants to improve this script, Iโ€™d be ultra happy! :slight_smile:


App Store script