fix resize-compensating scrolling