feat(nds): handle swipes

This commit is contained in:
2026-02-12 00:57:46 +01:00
parent 29b2f79a9a
commit f5090c9d49
5 changed files with 76 additions and 5 deletions

View File

@@ -195,12 +195,14 @@ useKeyDown(({ key, repeated }) => {
return;
switch (key) {
case "NDS_SWIPE_RIGHT":
case "NDS_LEFT":
if (store.currentProject > 0) {
startButtonAnimation("prev");
store.scrollProjects("left");
}
break;
case "NDS_SWIPE_LEFT":
case "NDS_RIGHT":
if (store.currentProject < store.projects.length - 1) {
startButtonAnimation("next");