Anchors manip
Opened this issue · 0 comments
thomaspeugeot commented
Legacy:
when a rect is "selected", another mouse down is necessary to move the rect.
in legacy,
the condition for moving the rect is
if (this.PointAtMouseDown && (this.rectDragging || this.Rect.IsSelected)) {
private PointAtMouseDown: gongsvg.PointDB | undefined
is undefined when the distance moved is below the threshold . It is defined otherwise.
When is it set to undefined ? (maybe after the callback from the updating ?) YES : there is a ngOnInit().
why ?
a good solution would be to define the state:
- rect is selected
- rect is not dragged
vs
- rect is selected
- rect is dragged