Merge pull request #1684 from thyttan/patch-2
[dtlaunch, b2] Change swipe direction to UpDownmaster
commit
31c53f05a3
|
|
@ -9,3 +9,4 @@
|
|||
0.09: fix the trasparent widget bar if there are no widgets for Bangle 2
|
||||
0.10: added "one click exit" setting for Bangle 2
|
||||
0.11: Fix bangle.js 1 white icons not displaying
|
||||
0.12: On Bangle 2 change to swiping up/down to move between pages as to match page indicator. Swiping from left to right now loads the clock.
|
||||
|
|
|
|||
|
|
@ -85,18 +85,25 @@ function drawPage(p){
|
|||
g.flip();
|
||||
}
|
||||
|
||||
Bangle.on("swipe",(dir)=>{
|
||||
Bangle.on("swipe",(dirLeftRight, dirUpDown)=>{
|
||||
selected = 0;
|
||||
oldselected=-1;
|
||||
if (dir<0){
|
||||
if (dirUpDown==-1){
|
||||
++page; if (page>maxPage) page=0;
|
||||
drawPage(page);
|
||||
} else {
|
||||
} else if (dirUpDown==1){
|
||||
--page; if (page<0) page=maxPage;
|
||||
drawPage(page);
|
||||
}
|
||||
}
|
||||
if (dirLeftRight==1) showClock();
|
||||
});
|
||||
|
||||
function showClock(){
|
||||
var app = require("Storage").readJSON('setting.json', 1).clock;
|
||||
if (app) load(app);
|
||||
else E.showMessage("clock\nnot found");
|
||||
}
|
||||
|
||||
function isTouched(p,n){
|
||||
if (n<0 || n>3) return false;
|
||||
var x1 = (n%2)*72+XOFF; var y1 = n>1?72+YOFF:YOFF;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "dtlaunch",
|
||||
"name": "Desktop Launcher",
|
||||
"version": "0.11",
|
||||
"version": "0.12",
|
||||
"description": "Desktop style App Launcher with six (four for Bangle 2) apps per page - fast access if you have lots of apps installed.",
|
||||
"screenshots": [{"url":"shot1.png"},{"url":"shot2.png"},{"url":"shot3.png"}],
|
||||
"icon": "icon.png",
|
||||
|
|
|
|||
Loading…
Reference in New Issue