hi, before i implment the 4 list/menu for the "swipe back to clock" or "back swipe",
currently the best way is leave "swipe back to clock" untouched, handle any Lt to Rt swipe, as it works on any clock/app ("backswipe" only work if there is an arrow at Lt upper corner).
and modify "back swipe" into swipe U to D:
function goBack(lr, _) {
// if it is a left to right swipe
if (lr === 1) {
// if we're in an app that has a back button, run the callback for it
if (global.BACK && countHandlers("swipe")<=settings.standardNumSwipeHandlers && countHandlers("drag")<=settings.standardNumDragHandlers) {
global.BACK();
}
}
}
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
hi, before i implment the 4 list/menu for the "swipe back to clock" or "back swipe",
currently the best way is leave "swipe back to clock" untouched, handle any Lt to Rt swipe, as it works on any clock/app ("backswipe" only work if there is an arrow at Lt upper corner).
and modify "back swipe" into swipe U to D:
simply change the
function goBack(lr, _) {
into function goBack(_, lr) {