Skip to content

Commit

Permalink
FIX: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
mazipan committed Jan 13, 2025
1 parent 1b3c65b commit 9de103f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/overlay/selection/RectangleSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class ReactRectangleSelection extends React.Component<
Props,
State
> {
animationInProgress: NodeJS.Timeout | undefined;
animationInProgress: any;
constructor(props: Props) {
super(props);
this.animationInProgress = undefined;
Expand Down Expand Up @@ -75,7 +75,8 @@ export default class ReactRectangleSelection extends React.Component<

handleMouseDown(e: React.MouseEvent<HTMLDivElement, MouseEvent>) {
if (this.props.disabled) return;
let doubleClick = false;
// @ts-ignore
// let doubleClick = false;
clearTimeout(this.animationInProgress);
this.animationInProgress = undefined;
this.setState({ selectionBox: false, animation: "" });
Expand All @@ -86,7 +87,7 @@ export default class ReactRectangleSelection extends React.Component<
e.target.id === "react-rectangle-selection"
) {
this.setState({ selectionBox: false, animation: "" });
doubleClick = true;
// doubleClick = true;
}

this.setState({
Expand Down

0 comments on commit 9de103f

Please sign in to comment.