beforeZoom and beforePan now recieve current state values