Skip to content

Commit

Permalink
fix(CrosshairsTool.js): Fixed mousedown callback name (#1376)
Browse files Browse the repository at this point in the history
Crosshairs would not work on click or mousedown because the callback name had been misspelled.

fix #1375
  • Loading branch information
mikehazell authored Jul 23, 2021
1 parent 94b7283 commit de4cb68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/CrosshairsTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class CrosshairsTool extends BaseTool {

super(props, defaultProps);

this.mouseDownCallback = this._chooseLocation.bind(this);
this.preMouseDownCallback = this._chooseLocation.bind(this);
this.mouseDragCallback = this._chooseLocation.bind(this);
this.touchDragCallback = this._chooseLocation.bind(this);
}
Expand Down

0 comments on commit de4cb68

Please sign in to comment.