Viewport on click tries to come into view


When the div(MyDiagram in most of the examples) is clicked (when the div is not completely visible) , it tries to centralise the div. How do I remove this behaviour ?

example :

The browser is automatically scrolling the page to make sure the DIV that is getting focus is fully visible. I think there might be several solutions – please search the web.

If you search here: Canvas shift on palette drop