-
Notifications
You must be signed in to change notification settings - Fork 1.2k
swipeinv: (WIP) Add inversion of drag events. Refactor to hijack and modify the events #3815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…modify the events instead of the handling of them. This should add compatibility with most apps, even if Bangle.setUI is not used.
Nice, I have not tested this, but looks good to me. |
I think this works now, can be tried at https://thyttan.github.io/BangleApps/?id=swipeinv not looking to merge yet though. |
@thyttan looks interesting, I'll give it a try when I get a chance, thanks |
I think I notice this approach making the watch feel a bit slower than the old one. So that's a minus in that case. But not conclusive, just a feeling. |
I also had the idea to do the inversions by wrapping the listener functions at their registration. That way It's here: thyttan@5cbb72e But I didn't get that to work yet. |
... instead of the handling of them. This should add compatibility with
most apps, even if Bangle.setUI is not used.
Ping @nxdefiant and @jt-nti , what do you think of this approach?
I'm also thinking of adding settings so horizontal and vertical inversion can be set individually, also per app.