optimized frame repaint on mouse move