Commit 66adde7 1 parent 8c038a0 commit 66adde7 Copy full SHA for 66adde7
File tree 1 file changed +4
-5
lines changed
packages/table/src/quadrants
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -304,9 +304,8 @@ export class TableQuadrantStack extends AbstractComponent2<ITableQuadrantStackPr
304
304
305
305
private throttledHandleWheel : ( event : React . WheelEvent < HTMLElement > ) => any ;
306
306
307
- // the interval instance that we maintain to enable debouncing of view
308
- // updates on scroll
309
- private debouncedViewSyncInterval ?: number ;
307
+ // cancel function for the debounced view sync handler
308
+ private cancelPendingViewSync ?: ( ) => void ;
310
309
311
310
private cache : TableQuadrantStackCache ;
312
311
@@ -813,8 +812,8 @@ export class TableQuadrantStack extends AbstractComponent2<ITableQuadrantStackPr
813
812
this . syncQuadrantViews ( ) ;
814
813
} else {
815
814
// update asynchronously after a debounced delay
816
- clearInterval ( this . debouncedViewSyncInterval ) ;
817
- this . debouncedViewSyncInterval = window . setTimeout ( this . syncQuadrantViews , viewSyncDelay ) ;
815
+ this . cancelPendingViewSync ?. ( ) ;
816
+ this . cancelPendingViewSync = this . setTimeout ( this . syncQuadrantViews , viewSyncDelay ) ;
818
817
}
819
818
} ;
820
819
You can’t perform that action at this time.
0 commit comments