BangleApps/apps/backswipe
Rob Pilling 70b89fbe2f backswipe: ignore `undefined` handlers
`undefined` handlers are created when we [remove listeners] part-way
through the array. This fixes `backswipe` for all firmwares, but
leaves the door open for a potential firmware change.

[remove listeners]: 0f16231a43/src/jswrap_object.c (L1035-L1035)
2023-10-10 10:51:50 +01:00
..
ChangeLog backswipe: ignore `undefined` handlers 2023-10-10 10:51:50 +01:00
README.md add to the instruction for # of handlers i readme 2023-02-25 13:50:09 +01:00
app.png New icon 2023-01-22 10:01:13 +01:00
boot.js backswipe: ignore `undefined` handlers 2023-10-10 10:51:50 +01:00
metadata.json backswipe: ignore `undefined` handlers 2023-10-10 10:51:50 +01:00
settings.js Capitalization 2023-02-08 12:39:27 +01:00

README.md

Service that allows you to use an app's back button using left to right swipe gesture.

Settings

Mode: Blacklist/Whitelist/Always On/Disabled App List: Black-/whitelisted apps Standard # of swipe handlers: 0-10 (Default: 0, must be changed for backswipe to work at all) Standard # of drag handlers: 0-10 (Default: 0, must be changed for backswipe to work at all)

Standard # of handlers settings are used to fine tune when backswipe should trigger the back function. E.g. when using a keyboard that works on drags, we don't want the backswipe to trigger when we just wanted to select a letter. This might not be able to cover all cases however.

To get an indication for standard # of handlers Bangle["#onswipe"] and Bangle["#ondrag"] can be entered in the Espruino Web IDE console field. They return undefined if no handler is active, a function if one is active, or a list of functions if multiple are active. Calling this on the clock app is a good start.

TODO

  • Possibly add option to tweak standard # of handlers on per app basis.

Creator

Kedlub

Contributors

thyttan