Minimap navigation breaks after resizing window

If I resize the width of the viewport e.g. by snapping the browser window to a side or by resizing the dev-tools, the minimap doesn’t navigate towards the point that was clicked.

If the difference in width is somewhat high, I can’t even use the minimap to get back to the diagram. The larger the difference is, the larger is the discrepency between where I want to navigate and to where the minimap actually navigates.

Can be reproduced by using the codesandbox from this thread or this codesandbox.

Can you share a screencast of the behavior you are describing? It will be much easier for us to reproduce and consider this as a bug.

Thanks :heart:

Here’s a demo. I am not dragging the box which works but clicking which is the only option for naviation if the box is ouside the minimap. bpmn minimap navigation breaks after resize

If the page goes down in the future, you can still have a look at this gif

ezgif-2-4a5d43f7a6cf

@Niklas_Kiefer did this help you? do you think it’s a bug? and if so do you want me to file the bug report at bpmn-js or at diagram-js-minimap or do you report the bug?

Thanks for sharing (and sorry for the late response)! In your gif it really looks buggy after resizing the window. I was not able to reproduce it on my machine though.

Indeed it would be great if you could open a bug issue and giving all the necessary details (steps to reproduce, adding your gif, your system information as os and browser). With this information, we can see how we can detect the root cause. Thanks already! :+1: