1
0
Fork 0

Merge pull request #1 from t0m1o1/Swipe-Launcher

Swipe launcher
master
t0m1o1 2021-11-20 05:14:13 +00:00 committed by GitHub
commit 92d156fb39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -1 +1,2 @@
0.01: New App!
0.01: New App!
0.02: Fix issue with mode being undefined

View File

@ -3,7 +3,7 @@
var sui = Bangle.setUI;
Bangle.setUI = function(mode, cb) {
sui(mode,cb);
if (!mode.startsWith("clock")) return;
if (mode && !mode.startsWith("clock")) return;
Bangle.swipeHandler = dir => { if (dir<0) Bangle.showLauncher(); };
Bangle.on("swipe", Bangle.swipeHandler);
};
@ -14,4 +14,4 @@ setTimeout(function() {
Bangle.swipeHandler = dir => { if (dir>0) load(); };
Bangle.on("swipe", Bangle.swipeHandler);
}
}, 10);
}, 10);