-
Notifications
You must be signed in to change notification settings - Fork 346
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
Transformed elements look blurry in Chrome #418
Comments
Can removing |
It most likely will. With the information I mentioned above, you should be able to reproduce this bug quite easily. And then check if removing the "will-change" solves the issue. |
As far as I know, using But I don't know if I can reproduce the blur effect (with or without If the problem is with the transform, I can't think of any way that can replace it. But if |
I noticed that when I, in the Chrome Developer Tools, unchecked the "transform" property in the CSS, the tooltip was completely sharp & not blurred (of course, it was also misplaced now, but it proved that the transform was the problem). |
Thanks for your feedback, |
Describe the bug
Elements in the slider which are transformed, such as the dot handle and a tooltip, are rendered blurry specifically in newer Chrome versions (I am using version 78):
You can get to a state like this, but showing a dot in the slider (possibly combined with showing tooltips). After moving the dot, the dot itself as well as any shown tooltip, are blurry.
This is caused by a bug in the "will-change" property which Chrome has introduced. See https://greensock.com/will-change for more information about this.
For now, the best option - I think - would be to not use this attribute.
I fixed it in my application by adding "will-change: auto" to the .vue-slider-dot class in my CSS. This wasn't perfect, however, as then a tiny gap of 1 pixel appeared between the tooltip text bubble and the tooltip handle. So I fixed that too (for now) with the following CSS:
@supports (will-change: transform) {
.vue-slider-dot {
will-change: auto;
}
.vue-slider-dot-tooltip-inner-top:after {
transform: translate(-50%, -1px);
}
}
The text was updated successfully, but these errors were encountered: