Skip to content

Use will-change:transform for smoother mobile scrolling#119

Merged
EtienneLem merged 1 commit intomissive:masterfrom
nolanlawson:avoid-repaint-on-scroll
Sep 25, 2017
Merged

Use will-change:transform for smoother mobile scrolling#119
EtienneLem merged 1 commit intomissive:masterfrom
nolanlawson:avoid-repaint-on-scroll

Conversation

@nolanlawson
Copy link
Copy Markdown

This improves mobile scrolling, especially on mobile Chrome/Android. It provides a hint to the browser to move the scrollable element to a layer on the GPU, which leads to visibly smoother scrolling in Chrome/Android.

Chrome also warns about this in the Dev Tools:

out

Here's a video showing the before and after (note some overall lag due to using Android screenrecord plus DevTools being attached; the "after" version is even smoother without those things): https://gfycat.com/DamagedDistinctHorsechestnutleafminer

@EtienneLem EtienneLem merged commit bf5c67e into missive:master Sep 25, 2017
@EtienneLem
Copy link
Copy Markdown
Member

Thanks! 🤘

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

Successfully merging this pull request may close these issues.

2 participants