powsybl / powsybl-diagram-viewer

Other
2 stars 1 forks source link

Fix node moving when zooming out after node selection in network area diagram #71

Closed massimo-ferraro closed 1 month ago

massimo-ferraro commented 1 month ago

Please check if the PR fulfills these requirements

Does this PR already have an issue describing the problem? no

What kind of change does this PR introduce? Bug fix

What is the current behavior? In network area diagram, when zooming out after node selection, the selected node moves but it is far from the mouse position

What is the new behavior (if this is a feature change)? In network area diagram, when zooming out after node selection, the moved node position corresponds with the mouse position

Does this PR introduce a breaking change or deprecate an API?