Skip to content

Commit ef9b9a0

Browse files
committed
store rAF
1 parent 6b5f3df commit ef9b9a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/design-library-list/use-preview-renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ export const usePreviewRenderer = (
331331
cancelAnimationFrame( adjustAnimateFrameRef.current )
332332
}
333333

334-
requestAnimationFrame( () => {
334+
adjustAnimateFrameRef.current = requestAnimationFrame( () => {
335335
adjustScale()
336336
prevSelectedTabRef.current = selectedTab
337337
} )

0 commit comments

Comments
 (0)