We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 767eb63 commit 6b5f3dfCopy full SHA for 6b5f3df
src/components/design-library-list/index.js
@@ -115,7 +115,10 @@ const DesignLibraryItem = props => {
115
}
116
117
const observer = new IntersectionObserver( ( [ entry ] ) => {
118
- setShouldRender( entry.isIntersecting )
+ // reduce flicker during rapid scrolls
119
+ requestAnimationFrame( () => {
120
+ requestAnimationFrame( () => setShouldRender( entry.isIntersecting ) )
121
+ } )
122
}, {
123
root: rootEl,
124
rootMargin: '250px',
0 commit comments