fix for scroll jumping on repaint