File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
services/static-webserver/client/source/class/osparc/workbench Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,9 @@ qx.Class.define("osparc.workbench.Annotation", {
124124 break ;
125125 }
126126 }
127+
127128 if ( representation ) {
129+ // handle click events
128130 switch ( this . getType ( ) ) {
129131 case this . self ( ) . TYPES . NOTE :
130132 case this . self ( ) . TYPES . RECT :
@@ -142,10 +144,13 @@ qx.Class.define("osparc.workbench.Annotation", {
142144 } ) ;
143145 break ;
144146 }
147+
148+ // handle moving events
145149 osparc . wrapper . Svg . makeDraggable ( representation ) ;
146150 representation . on ( "dragstart" , ( ) => this . fireEvent ( "annotationStartedMoving" ) ) ;
147151 representation . on ( "dragmove" , ( ) => this . fireEvent ( "annotationMoving" ) ) ;
148152 representation . on ( "dragend" , ( ) => this . fireEvent ( "annotationStoppedMoving" ) ) ;
153+
149154 this . setRepresentation ( representation ) ;
150155 }
151156 } ,
You can’t perform that action at this time.
0 commit comments