mirror of https://github.com/espruino/BangleApps
gpstrek - Change from leftright UI to custom with swipe
parent
7f886e79c5
commit
81ba4e17fa
|
@ -318,8 +318,7 @@ function triangle (x, y, width, height){
|
|||
];
|
||||
}
|
||||
|
||||
function setButtons(){
|
||||
Bangle.setUI("leftright", (dir)=>{
|
||||
function onSwipe(dir){
|
||||
if (dir < 0) {
|
||||
nextScreen();
|
||||
} else if (dir > 0) {
|
||||
|
@ -327,7 +326,14 @@ function setButtons(){
|
|||
} else {
|
||||
nextScreen();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function setButtons(){
|
||||
let options = {
|
||||
mode: "custom",
|
||||
swipe: onSwipe
|
||||
};
|
||||
Bangle.setUI(options);
|
||||
}
|
||||
|
||||
function getApproxFileSize(name){
|
||||
|
|
Loading…
Reference in New Issue