Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

iOS: Project template has no momentum scrolling #204

Open
leonderijke opened this issue Dec 7, 2017 · 2 comments
Open

iOS: Project template has no momentum scrolling #204

leonderijke opened this issue Dec 7, 2017 · 2 comments

Comments

@leonderijke
Copy link
Collaborator

leonderijke commented Dec 7, 2017

Because of the use of overflow: auto on the main element iOS will not use the "momentum scrolling". Maybe we should add it to the project template by default.

@pascalw
Copy link
Member

pascalw commented Dec 7, 2017

If I remember correctly iOS will only use momentum scrolling if you put -webkit-overflow-scrolling: touch on the scrolling element.

Putting this on the main element might be nice for a demo, but if you actually want momentum scrolling you'll still need to think were to add this in your app. Or am I missing something?

@leonderijke
Copy link
Collaborator Author

Yes, that's correct. However, momentum scrolling can be a drain on battery life and used to be known to cause tricky side effects.

I'm suggesting that maybe we should add it to the project template, but we should test it really thoroughly.

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

No branches or pull requests

2 participants