From c6b1c0c1e6b1f7920ec1e07cf384fc0e045e70e4 Mon Sep 17 00:00:00 2001 From: thyttan <97237430+thyttan@users.noreply.github.com> Date: Tue, 24 Jun 2025 11:31:33 +0200 Subject: [PATCH] msgtwscr: don't pollute global scope --- apps/msgtwscr/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/msgtwscr/boot.js b/apps/msgtwscr/boot.js index 2b3884d2e..4b43102a9 100644 --- a/apps/msgtwscr/boot.js +++ b/apps/msgtwscr/boot.js @@ -2,7 +2,7 @@ // twistThreshold How much acceleration to register a twist of the watch strap? Can be negative for opposite direction. default = 800 // twistMaxY Maximum acceleration in Y to trigger a twist (low Y means watch is facing the right way up). default = -800 // twistTimeout How little time (in ms) must a twist take from low->high acceleration? default = 1000 - function onTwistEmitDrag() { + let onTwistEmitDrag = ()=>{ Bangle.setOptions({twistThreshold:2500, twistMaxY:-800, twistTimeout:400}); let isTwistDragging = false; let twistHandler = ()=>{