I have a long, horizontal, narrow UIScrollView
containing several buttons side-by-side. When a user drags a button vertically, a specific method is triggered (via a UIPanGestureRecognizer
), and the scrollview doesn't scroll (even if his/her drag begins to go left or right). This is all good.
When a user drags horizontally anywhere on the scrollview, including directly on a button, the UIPanGestureRecognizer
ignores the effect and the scrollview should scroll. It's the last effect I'm having trouble with: when the user horizontally drags directly on a button, the scrollview doesn't scroll. How can I "pass through" that horizontal gesture to the scrollview?
Thanks for reading!