xmartlabs / XLPagerTabStrip

Android PagerTabStrip for iOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent touch event from UITableViewController from propogating to XLPagerTabStrip

mikezliu opened this issue · comments

commented
  • Environment: XLPagerTabStrip 9.0.0, Xcode 11.6 and iOS 13

I'm using a UITableViewController (scrolls vertically) inside a XLPagerTabStrip (scrolls horizontally).

When press-holding on certain items in the UITableViewController and moving left/right, I don't want the event to propagate to XLPagerTabStrip and trigger horizontal scrolling. I tried setting isUserInteractionEnabled but the XLPagerTabStrip still scrolls horizontally. Is there something I am perhaps doing incorrectly? Let me know if you need more information.

When I press-hold on an item in the UITableViewController and try to scroll vertically, it is locked as it should be.