Add delegate option to conditionally lock panning of views.