Skip to content

Commit

Permalink
fixed missing cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
klakhov committed Oct 17, 2024
1 parent dc04778 commit 65a13b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cvat-canvas/src/typescript/masksHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,12 @@ export class MasksHandlerImpl implements MasksHandler {
}

private updateHidden(value: boolean) {
this.isHidden = value;
if (value) {
this.canvas.getElement().parentElement.style.display = 'none';
} else {
this.canvas.getElement().parentElement.style.display = 'block';
this.canvas.getElement().parentElement.style.display = this.isDrawing || this.isEditing ? 'block' : '';
// TODO: change brush tool position to avoid flickering
}
}

Expand Down

0 comments on commit 65a13b2

Please sign in to comment.