mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-19 12:10:21 +08:00
Update hit-test-slop.md
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user