Skip to content

Commit a07060e

Browse files
fix ( PedroBern#461) fix flickering
1 parent b25969a commit a07060e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Container.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ export const Container = React.memo(
228228
const toggleSyncScrollFrame = (toggle: boolean) =>
229229
syncScrollFrame.setActive(toggle)
230230
const syncScrollFrame = useFrameCallback(({ timeSinceFirstFrame }) => {
231-
syncCurrentTabScrollPosition()
231+
if (timeSinceFirstFrame % 100 === 0) {
232+
syncCurrentTabScrollPosition()
233+
}
232234
if (timeSinceFirstFrame > 1500) {
233235
runOnJS(toggleSyncScrollFrame)(false)
234236
}

0 commit comments

Comments
 (0)