6372f293f3
When zooming, the page was moving up/down because the scroll position wasn't being adjusted to account for the scale change. Solution: Proportional scroll compensation - Track old scale before applying new scale - Calculate scale ratio (newScale / oldScale) - Adjust scroll position: newScrollTop = oldScrollTop * scaleRatio Example: - At 100% zoom, scrolled to pixel 1000 - Zoom to 50%: content at pixel 1000 is now at pixel 500 - Adjust scroll to 500 to keep same content visible Result: - Page stays visually in the same place when zooming - Content you're viewing remains stable - No jumping or movement during zoom transitions - Works at all zoom levels (50%-200%)