Skip to content
Snippets Groups Projects
Unverified Commit 3ea1d6c5 authored by Uladzimir Havenchyk's avatar Uladzimir Havenchyk Committed by GitHub
Browse files

[InteractiveTable] Improve peformance during scrolling (#34037)

parent ff0ab8bb
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,7 @@ export class Mode {
clicked?.dimensions,
);
// TODO: those calculations are really expensive and should be memoized at some level
drills = availableDrillThrus
.flatMap(drill => {
const drillDisplayInfo = Lib.displayInfo(query, stageIndex, drill);
......
......@@ -502,7 +502,7 @@ class TableInteractive extends Component {
}
};
cellRenderer = ({ key, style, rowIndex, columnIndex }) => {
cellRenderer = ({ key, style, rowIndex, columnIndex, isScrolling }) => {
const { data, settings } = this.props;
const { dragColIndex, showDetailShortcut } = this.state;
const { rows, cols } = data;
......@@ -527,7 +527,8 @@ class TableInteractive extends Component {
);
const isLink = cellData && cellData.type === ExternalLink;
const isClickable = !isLink && this.visualizationIsClickable(clicked);
const isClickable =
!isLink && !isScrolling && this.visualizationIsClickable(clicked);
const backgroundColor = this.getCellBackgroundColor(
settings,
value,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment