Skip to content

Commit

Permalink
fix: increase virtual scroll render throttling to 10ms
Browse files Browse the repository at this point in the history
- revert the previously lower 5ms to 10ms render throttling to be a bit more conservative and avoid UI rendering issues
  • Loading branch information
ghiscoding committed Aug 23, 2024
1 parent 6880f58 commit 64bf6ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/models/gridOption.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export interface GridOption<C extends BaseColumn = BaseColumn> {
/** Optional sanitizer function to use for sanitizing data to avoid XSS attacks */
sanitizer?: (dirtyHtml: string) => string;

/** Defaults to 5(ms), render throttling when using virtual scroll on large dataset */
/** Defaults to 10(ms), render throttling when using virtual scroll on large dataset */
scrollRenderThrottling?: number;

/** CSS class name used when cell is selected */
Expand Down
2 changes: 1 addition & 1 deletion src/slick.grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export class SlickGrid<TData = any, C extends Column<TData> = Column<TData>, O e
doPaging: true,
autosizeColsMode: GridAutosizeColsMode.LegacyOff,
autosizeColPaddingPx: 4,
scrollRenderThrottling: 5,
scrollRenderThrottling: 10,
autosizeTextAvgToMWidthRatio: 0.75,
viewportSwitchToScrollModeWidthPercent: undefined,
viewportMinWidthPx: undefined,
Expand Down

0 comments on commit 64bf6ff

Please sign in to comment.