Skip to content

Commit 30654c6

Browse files
author
thyttan
committed
swipeinv: update TODO in README
1 parent 363d009 commit 30654c6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

apps/swipeinv/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ Swiping behavior that uses the `drag` event is not altered either.
1010

1111
## TODO
1212

13-
- Try to handle swipes from `Bangle.on("swipe", ...)`
14-
- alternatively refactor apps using that to only use `Bangle.setUI` for setting up swipes.
15-
- Think about how to accommodate e.g. `touch` or `back` handlers set up in `Layout` library calls. They are removed if we refactor some `Bangle.on("swipe", ...)` to `Bangle.setUI`. (Is it maybe resolved if we call `Bangle.setUI` before the `Layout` call? - have not tested that yet.)
1613
- Add bootloader apps and widgets to the list of apps that can be individually toggled in settings?
14+
- How? Right now we look at `global.__FILE__` the active app in order to determine which events to invert. That doesn't work for widgets and bootcode. In fact they will probably be inverted along with the currently running app.
15+
- Refactor to invert at time of registering the event listeners?
16+
- This would make it so `swipeinv` does not depend on being first in the call list of event listeners.
17+
- Some work towards this was done in [thyttan@5cbb72e](https://github.com/thyttan/BangleApps/commit/5cbb72ee55f7fb7d335ffba228575a862a0ae612) but it it doesn't work yet.
1718

1819
## Requests
1920

0 commit comments

Comments
 (0)