Skip to content

Commit

Permalink
enhancement: dont draw hittest when viewport animation is active
Browse files Browse the repository at this point in the history
  • Loading branch information
Keelaro1 authored and disyakidneyshot committed Jan 22, 2024
1 parent 49659fb commit 8070115
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/chart/components/pane/pane.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,7 @@ export class PaneComponent extends ChartBaseElement {
const chartPaneId = CanvasElement.PANE_UUID(this.uuid);
const getBounds = () => this.canvasBoundsContainer.getBounds(chartPaneId);
const scaleModel =
options?.scale ??
new SyncedByXScaleModel(
this.mainScale,
this.config,
getBounds,
this.canvasAnimation,
this.hitTestCanvasModel,
);
options?.scale ?? new SyncedByXScaleModel(this.mainScale, this.config, getBounds, this.canvasAnimation);

const [unsub, dragNDrop] = this.createYPanHandler(this.uuid, scaleModel);

Expand Down

0 comments on commit 8070115

Please sign in to comment.