Fix mandelbrot zooming on mouse scroll.

Trying to scroll with the middle button of the mouse returns an error  

     ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

With this patch the example works as expected.