Shopify / FunctionalTableData

Declarative UITableViewDataSource implementation
MIT License
365 stars 30 forks source link

Add delaysContentTouches to CellStyle #176

Closed stevenwenxu closed 5 years ago

stevenwenxu commented 5 years ago

When a table view row has a button in it, the button won't have an immediate highlighted tapping state because the system needs to determine if the tapping was part of a scroll. The tapping state only appears when the button is long-pressed for 1 second or so.

This PR adds a configurable delaysContentTouches, so that users of FTD have control over whether they want this behaviour or not. When this parameter is not used, it has the default system behaviour.

It appears that starting from iOS 7, each UITableViewCell has its own internal scroll view which interferes with the flag set on the table view, and it's been suggested by the community to do this on the cell level as well for the desired behaviour.

stevenwenxu commented 5 years ago

It looks like this isn't needed for now.