avoid a useless render when chnaging the camera with the mouse.