Added enabling/disabling zoom/pan