Calculate scroll position to center an object in the viewport
Object position and dimensions
Viewport width
Viewport height
Current zoom level
Scroll position to center the object
Calculate scroll position to center an object in the viewport