Skip to content

Commit c6b1c0c

Browse files
authored
msgtwscr: don't pollute global scope
1 parent fb9c417 commit c6b1c0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/msgtwscr/boot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// twistThreshold How much acceleration to register a twist of the watch strap? Can be negative for opposite direction. default = 800
33
// twistMaxY Maximum acceleration in Y to trigger a twist (low Y means watch is facing the right way up). default = -800
44
// twistTimeout How little time (in ms) must a twist take from low->high acceleration? default = 1000
5-
function onTwistEmitDrag() {
5+
let onTwistEmitDrag = ()=>{
66
Bangle.setOptions({twistThreshold:2500, twistMaxY:-800, twistTimeout:400});
77
let isTwistDragging = false;
88
let twistHandler = ()=>{

0 commit comments

Comments
 (0)