check for NOT more than one swipe handler

master
thyttan 2023-02-05 14:25:37 +01:00
parent de20a40100
commit 853c99e889
1 changed files with 1 additions and 1 deletions

View File

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