Avoid triggering rendering multiple times when zooming using the mouse wheel