File tree 1 file changed +6
-0
lines changed
cvat-canvas/src/typescript
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,9 @@ export class InteractionHandlerImpl implements InteractionHandler {
140
140
this . interactionShapes = this . interactionShapes . filter (
141
141
( shape : SVG . Shape ) : boolean => shape !== self ,
142
142
) ;
143
+ if ( this . interactionData . startWithBox && this . interactionShapes . length === 1 ) {
144
+ this . interactionShapes [ 0 ] . removeClass ( 'cvat_canvas_hidden' ) ;
145
+ }
143
146
this . shapesWereUpdated = true ;
144
147
if ( this . shouldRaiseEvent ( _e . ctrlKey ) ) {
145
148
this . onInteraction ( this . prepareResult ( ) , true , false ) ;
@@ -401,6 +404,9 @@ export class InteractionHandlerImpl implements InteractionHandler {
401
404
if ( interactionData . intermediateShape ) {
402
405
this . intermediateShape = interactionData . intermediateShape ;
403
406
this . updateIntermediateShape ( ) ;
407
+ if ( this . interactionData . startWithBox ) {
408
+ this . interactionShapes [ 0 ] . addClass ( 'cvat_canvas_hidden' ) ;
409
+ }
404
410
} else if ( interactionData . enabled ) {
405
411
this . interactionData = interactionData ;
406
412
this . initInteraction ( ) ;
You can’t perform that action at this time.
0 commit comments