MMParallaxView icon indicating copy to clipboard operation
MMParallaxView copied to clipboard

horizontal scrolling in bottomView

Open billidani7 opened this issue 6 years ago • 2 comments

Hi.

I use collectionView in bottomView and one cell supports horizontal scrolling. When I do horizontal scroll in that cell, the startAnimate(isUp: Bool) fires and animate between up and down states. is it possible to support horizontal scroll in bottomView without that problem? I think something is happening with UIPanGestureRecognizer

billidani7 avatar Feb 05 '19 14:02 billidani7

same problem here

nihedr9 avatar May 05 '19 18:05 nihedr9

hey @billidani7 if you want a quick fix for the horizontal scroll inside bottomView you can change the behaviour of the gesture recogniser delegate:

public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool

in my case I had a UICollectionView so I added this check:

if otherGestureRecognizer.view is UICollectionView {
            return false
        }

nihedr9 avatar May 05 '19 19:05 nihedr9