Update hit-test-slop.md

This commit is contained in:
Hannah Troisi
2016-04-20 16:08:29 -07:00
parent dd29c9f5e1
commit 1399be36da

View File

@@ -10,9 +10,11 @@ next: batch-fetching-api.html
ASDisplayNode is the base class for all nodes, so this property is available on any of AsyncDisplayKit's nodes.
Note:
- The default is UIEdgeInsetsZero
- This affects the default implementation of `-hitTest` and `-pointInside`, so subclasses should call super if you override it and want hitTestSlop applied.
<ul>
<li>the default value is UIEdgeInsetsZero</li>
<li>This affects the default implementation of `-hitTest` and `-pointInside`, so subclasses should call super if you override it and want hitTestSlop applied.</li>
</ul>
**A node's ability to capture touch events is restricted by its parent's bounds + parent hitTestSlop UIEdgeInsets.** Should you want to extend the hitTestSlop of a child outside its parent's bounds, simply extend the parent node's hitTestSlop to include the child's hitTestSlop needs.
A node's ability to capture touch events is restricted by its parent's bounds + parent hitTestSlop UIEdgeInsets. Should you want to extend the hitTestSlop of a child outside its parent's bounds, simply extend the parent node's hitTestSlop to include the child's hitTestSlop needs.
Check out this cool <a href="debug-tool-hit-test-visualization.html">debug tool</a> that visualizes the hitTestSlop of the nodes in your app.