UI performance issue during scroll #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi @dashersw! First off, this library’s effect looks fantastic—one of the best refraction effects I’ve seen on the web. I did notice noticeable scroll lag when placing the glass component inside a fixed navbar. From what I can tell, it stems from html2canvas needing to snapshot the DOM during scrolling. Hope this helps—amazing project!
I feel the same way, there is scroll lag
Are your glass components nested? From what I've seen, the html2canvas snapshot should only refresh when the window changes size, but a child component will take constant (~30fps) snapshots of its parent's canvas.
If not, are you on a mobile device? Scrolling on some mobile browsers causes the top browser address bar to disappear which might force a html2canvas refresh.