Skip to content

Commit 98a3d79

Browse files
committed
minor
1 parent f4c562a commit 98a3d79

File tree

1 file changed

+5
-0
lines changed
  • services/static-webserver/client/source/class/osparc/workbench

1 file changed

+5
-0
lines changed

services/static-webserver/client/source/class/osparc/workbench/Annotation.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
},

0 commit comments

Comments
 (0)