kabisa / maji

Maji is a framework to build great hybrid mobile apps.
https://www.majimobile.com/
MIT License
18 stars 10 forks source link

iOS: Project template has no momentum scrolling #204

Open leonderijke opened 6 years ago

leonderijke commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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.