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

Made a new stacking context for swipe-wrap #267

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adiospace
Copy link

Added z-index: 1 to .swipe-wrap selector which creates a new stacking
context. When the slider is animated, only it will be repainted.
It used to be that when the slider was repainted, all the other
positioned elements were repainted too.

Fixes #266.

Added z-index: 1 to .swipe-wrap selector which creates a new stacking
context. When the slider is animated, only it will be repainted.
It used to be that when the slider was repainted, all the other
positioned elements were repainted too.
@sbone
Copy link

sbone commented Apr 26, 2013

This really improved the performance for me. Thanks!

@ihor-sviziev
Copy link

+1! It's really increase performance on android devices!

@RyanWheale
Copy link

+1 - unnecessary repaints were causing a dramatic decrease in frame rate and slight jitters on positioned elements below the slider. OSX 10.8.3, latest stable Chrome

@evgenyneu
Copy link

Thank you so much for finding this. Before the slider stuttered on iPad 2. Now it's buttery smooth. Sweet!

@LeBenLeBen
Copy link

+1, how a single line can change everything.

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.

Triggers repaints for every element with position relative
6 participants