Adds handling of min/max zoom and onzoom to double-click