File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/packages/frontend/frame-editors/latex-editor Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -369,11 +369,8 @@ export function Output(props: OutputProps) {
369
369
const autoSyncInProgress =
370
370
actions . store . get ( "autoSyncInProgress" ) ;
371
371
if ( autoSyncInProgress ) {
372
- // Debounce the flag clearing to avoid clearing too early during scrolling
373
- clearTimeout ( ( window as any ) . __autoSyncClearTimeout ) ;
374
- ( window as any ) . __autoSyncClearTimeout = setTimeout ( ( ) => {
375
- actions . setState ( { autoSyncInProgress : false } ) ;
376
- } , 500 ) ; // Wait longer to ensure scrolling has stabilized
372
+ // Clear immediately to allow next forward sync without delay
373
+ actions . setState ( { autoSyncInProgress : false } ) ;
377
374
}
378
375
} }
379
376
onPageDimensions = { setPageDimensions }
You can’t perform that action at this time.
0 commit comments