Skip to content
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

swipe instead of „back“ button #389

Open
simonseres opened this issue Jun 13, 2020 · 3 comments
Open

swipe instead of „back“ button #389

simonseres opened this issue Jun 13, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@simonseres
Copy link
Member

simonseres commented Jun 13, 2020

Usability enhancement for navigation: Instead of pressing the „back“ button in the top left, I‘d find it more convenient to swipe the screen to the right to jump back.
32A5B1D7-2406-4AB2-A9A1-BCD6772BC814

@simonseres simonseres added the enhancement New feature or request label Jun 13, 2020
@Danfro
Copy link
Contributor

Danfro commented Sep 20, 2022

I admit, the back button in nymea app on my phone is generally quite hard to hit. Small hit area. Some additional option would be good.

@mzanetti
Copy link
Member

I actually have implemented this about a year ago, but for some reason I never managed to finish it: https://github.com/nymea/nymea-app/tree/ios-swipe-gesture

@mzanetti
Copy link
Member

mzanetti commented Nov 19, 2022

Ok. just updated the old branch to latest master and remembered why...
The issue is that the standard Qt PageStack can't do this and more importantly, the default animation of the PageStack does not work with this as it uses a fading animation
While I've been able to implement the functionality and attach that to the page stack, it would require to manually define the animation to be a solid sliding (at least in the beginning, could add some fading later). After playing with it for a while, I couldn't find something I was happy with.

anyhow, if someone wants to give it a try, the code in that branch still works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants