1
0
Fork 0

check for existing swipe handlers

master
thyttan 2023-02-04 22:36:16 +01:00
parent d9dfb3adee
commit de20a40100
3 changed files with 4 additions and 3 deletions

View File

@ -1 +1,2 @@
0.01: New App!
0.02: Don't fire if the app uses swipes already.

View File

@ -15,8 +15,8 @@
var currentFile = global.__FILE__ || "";
if(global.BACK) delete global.BACK;
if (options && options.back && enabledForApp(currentFile)) {
if (global.BACK) delete global.BACK;
if (options && options.back && enabledForApp(currentFile) && (Bangle["#onswipe"] instanceof Array)&&Bangle["#onswipe"].length>1 ) {
global.BACK = options.back;
}
setUI(mode, cb);

View File

@ -1,7 +1,7 @@
{ "id": "backswipe",
"name": "Back Swipe",
"shortName":"BackSwipe",
"version":"0.01",
"version":"0.02",
"description": "Service that allows you to use an app's back button using left to right swipe gesture",
"icon": "app.png",
"tags": "back,gesture,swipe",