Fix scrolling error while scaling