1
0
Fork 0

Update app.js

master
nujw 2021-10-20 17:17:48 +13:00 committed by GitHub
parent 51d47cf7c4
commit a51d090276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -662,6 +662,7 @@ Bangle.on('lcdPower',function(on) {
});
Bangle.on('swipe',function(dir) {
console.log('Swipe : '+dir);
if(dir == 1) prevScrn();
else nextScrn();
});
@ -675,6 +676,7 @@ dir : "left/right/top/bottom/front/back",
*/
Bangle.on('tap',function(tap) {
console.log('Tap : '+tap.dir);
if ( tap.dir == 'front' && tap.double ) nextFunc(1); // Same as short BTN1
});