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. 
This line is now too long (PEP8 wants <= 79 char), can you move the comment to the line above?