iOS 13 introduced a new way to scroll within a scrollview - you can now touch and hold on a scroll bar, then drag to scroll.
I'm trying to add some logic to the panGestureRecognizer of a scrollview.
I attached my own handler via [scrollView.panGestureRecognizer addTarget: action:].
Both cases fire through panGestureRecognizer - but I can't see a way to distinguish which scrolling mode was active.
I attempted to monitor the velocity of the panGestureRecognizer and which way the scrollview is responding - with the idea that when using the scrollbar, these directions oppose each other. But this is flaky, and has false positives and negatives.
I'm trying to add some logic to the panGestureRecognizer of a scrollview.
I attached my own handler via [scrollView.panGestureRecognizer addTarget: action:].
Both cases fire through panGestureRecognizer - but I can't see a way to distinguish which scrolling mode was active.
I attempted to monitor the velocity of the panGestureRecognizer and which way the scrollview is responding - with the idea that when using the scrollbar, these directions oppose each other. But this is flaky, and has false positives and negatives.