Skip to content

Commit

Permalink
perf: decrease virtual scroll render throttling to 5ms (#1049)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored Aug 23, 2024
1 parent 8b46763 commit b0e7706
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 @@ -285,7 +285,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 50, render throttling when scrolling large dataset */
/** Defaults to 5(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: 50,
scrollRenderThrottling: 5,
autosizeTextAvgToMWidthRatio: 0.75,
viewportSwitchToScrollModeWidthPercent: undefined,
viewportMinWidthPx: undefined,
Expand Down

0 comments on commit b0e7706

Please sign in to comment.