File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
web/libs/editor/src/mixins Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { types } from "mobx-state-tree";
3
3
import Utils from "../utils" ;
4
4
import throttle from "lodash.throttle" ;
5
5
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" ;
7
7
import { RELATIVE_STAGE_HEIGHT , RELATIVE_STAGE_WIDTH } from "../components/ImageView/Image" ;
8
8
9
9
const DrawingTool = types
@@ -75,6 +75,9 @@ const DrawingTool = types
75
75
* @return {boolean } Returns true if the interaction is allowed, otherwise false.
76
76
*/
77
77
isAllowedInteraction ( ev ) {
78
+ if ( isFF ( FF_DEV_3391 ) && ! self . annotation . editable ) {
79
+ return false ;
80
+ }
78
81
if ( self . group !== "segmentation" ) return true ;
79
82
if ( ev . offsetX > self . obj . canvasSize . width ) return false ;
80
83
if ( ev . offsetY > self . obj . canvasSize . height ) return false ;
You can’t perform that action at this time.
0 commit comments