andreamazz / AMScrollingNavbar

Scrollable UINavigationBar that follows the scrolling of a UIScrollView
MIT License
6.05k stars 634 forks source link

Prevent conflicts with horizontally scrollable views #263

Closed thomasjoulin closed 7 years ago

thomasjoulin commented 7 years ago

When there is a horizontally scrollable view inside the followed scrollview, the navigation bar moves slightly up and down as described by #230. This is because ScrollingNavigationController pan gesture recognizer allows simultaneous gestures. This pull requests adds a guard preventing the pan gesture to start unless it is vertical

andreamazz commented 7 years ago

Looks great, thanks for this!