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

Back Button on Browser #6

Open
magbicaleman opened this issue Apr 21, 2015 · 2 comments
Open

Back Button on Browser #6

magbicaleman opened this issue Apr 21, 2015 · 2 comments

Comments

@magbicaleman
Copy link

By the way great package, and easy to implement. I'm wondering, if there is anyway to handle transitions of a user hits the back button on their browser.

Thank you!

@jamielob
Copy link
Owner

Hi @magbicaleman. Glad you've found it useful.
RE: back button animations, I purposely decided to leave it out of this package (for now at least). Different browsers on different platforms seem to handle how the animations on the browser back button differently. For example, Safari on iPhone adds in its own animation when you go back - which means that if you have a transition it animates the transitions twice.

I guess that the solution would be to detect the platform/browser and take the correct course of action - or at least offer a configuration option. A good example of a package that does animate the back button is http://meteor-ionic.meteor.com/.

@jamielob
Copy link
Owner

UPDATE: I take it back - the "double transition" still occurs when you use the swipe right gesture to go back on the iPhone.

Looks like this guy has the back button stuff figured out as it seems to work nicely on iPhone:
https://atmospherejs.com/ccorcos/transitioner
http://ccorcos-transitioner.meteor.com/
You might want to have a look and see how he handles it - happy to accept pull requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants