I am using the the modeler in my react application to display and edit files. I have windows that can be modified in size and I need zoom to adjust as a window resizes.
However, the viewport seems to move to the top left corner of the file when I zoom.
How do I center a zoom on the existing view of the SVG? I.E. Stay where I am in the viewer as the window is resizing / zooming?
Hi,
What version of bpmn-js and diagram-js are you using? I can not replicate the issue with the latest release (bpmn-js@8.8.2).
However, I found a similar issue with a development build yesterday. Does this PR look similar to what you are experiencing?
EDIT: might not be related at all, as the zoom is done via API and not from user interaction. Could you provide an example (codesandbox/gif/…) of what you are experiencing?