Skip to content

Commit

Permalink
chore: 还原
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinke666 committed Dec 11, 2024
1 parent cfc3036 commit 0bcb38f
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -772,18 +772,18 @@ export class BaseBrushSelection
};

public autoBrushScroll(point: PointLike, isRowHeader = false) {
if (this.isPointInCanvas(point)) {
return false;
}

this.clearAutoScroll();

const deltaX = point?.x - this.endBrushPoint?.x;
const deltaY = point?.y - this.endBrushPoint?.y;
if (!this.isPointInCanvas(point)) {
const deltaX = point?.x - this.endBrushPoint?.x;
const deltaY = point?.y - this.endBrushPoint?.y;

this.handleScroll(deltaX, deltaY, isRowHeader);
this.handleScroll(deltaX, deltaY, isRowHeader);

return true;
return true;
}

return false;
}

public emitBrushSelectionEvent(
Expand Down

0 comments on commit 0bcb38f

Please sign in to comment.