Paints if mouse button is pressed.