ResizeNode does not work.
ResizeNode
is probably used only in Sulca, but the implementation is in g2d plug-in.
Basically, after switching from Simantics 1.35 to latest master, symbol resizes no longer work. Instead, while dragging the mouse, translate mode is activated, and symbol seems to be moving. After relasing the button, the end result is combination of symbol resize and translate.
After I had spend several hours inspecting the problem, I have found:
-
TranslateMode
is activated instantly on first drag event, also in 1.35 -
ResizeNode
seems to be working for two drag events.ResizeNode.mouseMoved
returns true, which then preventsTranslateMode
operation. - After two drag / mouse move events,
ResizeNode
no longer receives any events, thusTranslateMode
activates.- This is odd, since typically
ResizeNode
gets all mouse events independently of mouse cursor location.
- This is odd, since typically
The only fix that I have found is to prevent TranslateMode
to be created, when ResizeNode
is in drag mode. Since ResizeNode
seems to be used only in Sulca, the only change in platform side is to allow Sulca code to override PointerInteractor2.handleDrag
method.