xmartlabs / XLPagerTabStrip

Android PagerTabStrip for iOS.
MIT License
6.97k stars 1.33k forks source link

Prevent touch event from UITableViewController from propogating to XLPagerTabStrip #797

Open mikezliu opened 4 years ago

mikezliu commented 4 years ago

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.