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

Demo: Poor Scrolling UX on Mobile #159

Open
jpdevries opened this issue May 31, 2016 · 5 comments
Open

Demo: Poor Scrolling UX on Mobile #159

jpdevries opened this issue May 31, 2016 · 5 comments

Comments

@jpdevries
Copy link

Demo at http://x-tag.github.io does not support smooth momentum scrolling on iOS. Since it only supports tap to start/stop time it seems like the example should be geared towards mobile.

Steps to Reproduce

@csuwildcat
Copy link
Member

@jpdevries This may be due to the scroll being inside a Flexbox element, or maybe there's a Webkit specific smooth scrolling CSS property that we left out - I will take a look.

@jpdevries
Copy link
Author

Cool. I would try this https://css-tricks.com/snippets/css/momentum-scrolling-on-ios-overflow-elements/

Might also be able to let the body grow, not use overflow at all, and use position:sticky to make the top bar persistent

@csuwildcat
Copy link
Member

I'll add whatever Webkit allows for this, and I am working on another
component that leverages body scroll for max perf. Unfortunately, for
compatability reasons, I probably won't use sticky (but would like to)
because it isn't supported as widely as we'd like :/
On Jun 5, 2016 6:19 PM, "JP DeVries" [email protected] wrote:

Cool. I would try this
https://css-tricks.com/snippets/css/momentum-scrolling-on-ios-overflow-elements/

Might also be able to let the body grow, not use overflow at all, and use
position:sticky to make the top bar persistent


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#159 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AAICyu5t52YFb_k1sIfcbY4aZCV2guReks5qI3WLgaJpZM4IqXRx
.

@csuwildcat
Copy link
Member

I am landing an even better solution today: I have created a new component that does page/view switching that allows you to use the native body scroll (the most performant scrolling on a device), while still providing the app layout with a fixed top/bottom header and footer.

@csuwildcat
Copy link
Member

The new x-page component is finished, and it enables 100% native body scroll while still maintaining dynamic single page switching with fixed headers/footers (something that plagues most other implementations that apply transforms to parent elements of fixed children): https://github.com/x-tag/page

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

No branches or pull requests

2 participants