Hi Artem,
On further analysis of your query, we suspect that you need to prevent the browser from scrolling when we click inside the diagram with a height greater than the screen height. If we have a diagram height greater than the screen size, then while clicking on the diagram, the diagram will be set to be on focus. This is the default behavior of the diagram. To fit the focus element into the viewport, the browser will adjust the view. To avoid browser scrolling, we need to set the diagram height less than the screen size, so that the diagram does not get auto scrolled.
Regards,
Sivakumar