fix zooming and panning capabilities for mac