From 46e49db0b2ae3fffa213c4b3d398c18b4089ef6b Mon Sep 17 00:00:00 2001 From: Tomas Voslar Date: Fri, 14 Feb 2025 13:55:20 +0100 Subject: [PATCH] fix: new architecture flickering --- src/Container.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Container.tsx b/src/Container.tsx index bf9729a..912711c 100644 --- a/src/Container.tsx +++ b/src/Container.tsx @@ -229,7 +229,10 @@ export const Container = React.memo( const toggleSyncScrollFrame = (toggle: boolean) => syncScrollFrame.setActive(toggle) const syncScrollFrame = useFrameCallback(({ timeSinceFirstFrame }) => { - syncCurrentTabScrollPosition() + if (timeSinceFirstFrame % 100 === 0) { + syncCurrentTabScrollPosition() + } + if (timeSinceFirstFrame > 1500) { runOnJS(toggleSyncScrollFrame)(false) }