diff --git a/CHANGELOG.md b/CHANGELOG.md index d6eac3d3c1ba..fd210cd18be5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,8 +32,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed filters select overflow () - Fixed tasks in project autoannotation () - Cuboids are missed in annotations statistics () -- The list of files attached to the task is not displayed () +- The list of files attached to the task is not displayed () +- Issue with point region doesn't work in Firefox () ### Security diff --git a/cvat-canvas/package-lock.json b/cvat-canvas/package-lock.json index ff9e2c0b4308..169131833011 100644 --- a/cvat-canvas/package-lock.json +++ b/cvat-canvas/package-lock.json @@ -1,6 +1,6 @@ { "name": "cvat-canvas", - "version": "2.2.1", + "version": "2.2.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/cvat-canvas/package.json b/cvat-canvas/package.json index 0fb63b61b897..873eae05b11f 100644 --- a/cvat-canvas/package.json +++ b/cvat-canvas/package.json @@ -1,6 +1,6 @@ { "name": "cvat-canvas", - "version": "2.2.1", + "version": "2.2.2", "description": "Part of Computer Vision Annotation Tool which presents its canvas library", "main": "src/canvas.ts", "scripts": { diff --git a/cvat-canvas/src/typescript/regionSelector.ts b/cvat-canvas/src/typescript/regionSelector.ts index 189c1bbf9362..79bfb4d86bda 100644 --- a/cvat-canvas/src/typescript/regionSelector.ts +++ b/cvat-canvas/src/typescript/regionSelector.ts @@ -1,4 +1,4 @@ -// Copyright (C) 2020 Intel Corporation +// Copyright (C) 2020-2021 Intel Corporation // // SPDX-License-Identifier: MIT @@ -66,7 +66,7 @@ export class RegionSelectorImpl implements RegionSelector { 'stroke-width': consts.BASE_STROKE_WIDTH / this.geometry.scale, }) .addClass('cvat_canvas_shape_region_selection'); - this.selectionRect.attr({ ...this.startSelectionPoint }); + this.selectionRect.attr({ ...this.startSelectionPoint, width: 1, height: 1 }); } }; @@ -78,7 +78,7 @@ export class RegionSelectorImpl implements RegionSelector { } = this.selectionRect.bbox(); this.selectionRect.remove(); this.selectionRect = null; - if (w === 0 && h === 0) { + if (w <= 1 && h <= 1) { this.onRegionSelected([x - offset, y - offset]); } else { this.onRegionSelected([x - offset, y - offset, x2 - offset, y2 - offset]);