Prevent diagonal scrolling in UIScrollView?
- by NickD
How can I force a UIScrollView in which paging and scrolling are on to move vertically or horizontally only?
My understanding is that the directionalLockEnabled property should achieve this, but a diagonal swipe still causes the view to scroll diagonally instead of restricting motion to a single axis.
Edit: to be clearer, I'd like to allow the user to scroll horizontally OR vertically, but not both simultaneously.