Skip to content

Commit f393e7c

Browse files
fix: FIT-317: User can add polygon points to unfinished Polygon in Compare all annotations mode (#7915)
Co-authored-by: yyassi-heartex <[email protected]>
1 parent dfe1c4e commit f393e7c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

web/libs/editor/src/mixins/DrawingTool.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { types } from "mobx-state-tree";
33
import Utils from "../utils";
44
import throttle from "lodash.throttle";
55
import { MIN_SIZE } from "../tools/Base";
6-
import { FF_DEV_3793, isFF } from "../utils/feature-flags";
6+
import { FF_DEV_3391, FF_DEV_3793, isFF } from "../utils/feature-flags";
77
import { RELATIVE_STAGE_HEIGHT, RELATIVE_STAGE_WIDTH } from "../components/ImageView/Image";
88

99
const DrawingTool = types
@@ -75,6 +75,9 @@ const DrawingTool = types
7575
* @return {boolean} Returns true if the interaction is allowed, otherwise false.
7676
*/
7777
isAllowedInteraction(ev) {
78+
if (isFF(FF_DEV_3391) && !self.annotation.editable) {
79+
return false;
80+
}
7881
if (self.group !== "segmentation") return true;
7982
if (ev.offsetX > self.obj.canvasSize.width) return false;
8083
if (ev.offsetY > self.obj.canvasSize.height) return false;

0 commit comments

Comments
 (0)