mirror of https://github.com/espruino/BangleApps
ha: merge conditionals
parent
a610833bd7
commit
c0ea3138e5
|
@ -71,11 +71,9 @@ Bangle.on('touch', function(btn, e){
|
|||
|
||||
if(isLeft){
|
||||
toLeft();
|
||||
}
|
||||
if(isRight){
|
||||
}else if (isRight){
|
||||
toRight();
|
||||
}
|
||||
if(!isRight && !isLeft){
|
||||
}else{
|
||||
sendTrigger();
|
||||
}
|
||||
});
|
||||
|
@ -83,8 +81,7 @@ Bangle.on('touch', function(btn, e){
|
|||
Bangle.on("swipe", (lr,ud) => {
|
||||
if (lr == -1) {
|
||||
toLeft();
|
||||
}
|
||||
if (lr == 1) {
|
||||
} else if (lr == 1) {
|
||||
toRight();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue