From 3b59bead01fbfeb392e3b7d5d6906a38d7a22d85 Mon Sep 17 00:00:00 2001 From: Erik Andresen Date: Thu, 26 Oct 2023 20:44:30 +0200 Subject: [PATCH] scicalc: Exit with short button press --- apps/scicalc/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/scicalc/app.js b/apps/scicalc/app.js index 078790855..d3d94bb5f 100644 --- a/apps/scicalc/app.js +++ b/apps/scicalc/app.js @@ -114,5 +114,6 @@ function swipeHandler(e,d) { Bangle.on("touch", touchHandler); Bangle.on("swipe", swipeHandler); +setWatch(() => load(), BTN, { repeat: false, edge: "falling" }); g.clear(); drawPage(curPage);