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
Incredibly laggy performance on androids. #306
Comments
Please provide a demo with reproduction. |
I am experiencing the same issue and only on Android devices. Any update on this? Edit: it is worse when setting shouldScaleBackground to true |
I'm not sure if this is considered a correct solution but at least as a workaround it helped a lot to add <body
style={{ willChange: "transform" }}
vaul-drawer-wrapper=""
className={cn(fontClasses)}
>
...
</body> I also added it to the <Drawer.Overlay
style={{
willChange: "transform",
}}
/> |
Hello @cervantes-x , |
First of all, very nice component. The interactions are very natural. However, when I tried the component on a mid range android phone, I was quite shocked by the frame rate that the drawer opens. See here a sample:
vaul.mp4
You can see all the other animations in the app are lightning fast and smooth except for the drawer. Matter of fact, the recording looks smoother than how I experienced it in person. I am not sure if everyone using the component is testing it only on top of the line phones. Even on pixels, there is frame drops. Am I missing an option or something that could make the situation better? The app is totally unusable on androids because of this. I know building such components are not easy, yet I just want to bring this to notice.
The text was updated successfully, but these errors were encountered: