Skip to content

Commit

Permalink
Merge pull request #12639 from hiroshisuga/patch-36
Browse files Browse the repository at this point in the history
fix a bug when a shape coordinate is zero
  • Loading branch information
antobinary committed Jun 22, 2021
2 parents b4cf043 + f8e6d96 commit 7ea78ef
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -174,7 +174,7 @@ export default class ShapePointerListener extends Component {
if (this.isDrawing) {
// make sure we are drawing and we have some coordinates sent for this shape before
// to prevent sending DRAW_END on a random mouse click
if (this.lastSentCoordinate.x && this.lastSentCoordinate.y) {
if (this.lastSentCoordinate.x !== undefined && this.lastSentCoordinate.y !== undefined) {
const { getCurrentShapeId } = actions;
this.handleDrawCommonAnnotation(
this.initialCoordinate,
Expand Down

0 comments on commit 7ea78ef

Please sign in to comment.