Skip to content

Commit 192472b

Browse files
Warr1611necolas
authored andcommitted
Add document about use PanResponder on elements with text content
Close necolas#2123
1 parent aeae9dd commit 192472b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/docs/src/pages/docs/apis/pan-responder.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ eleventyNavigation:
1313
PanResponder reconciles several pointers into a single gesture. It makes single-pointer gestures resilient to extra touches, and can be used to recognize basic multi-touch gestures.
1414
:::
1515

16+
:::callout
17+
**Note:** Using the `PanResponder` on components that contain text may cause native text selection events to interrupt the pan gesture. This can be avoided by setting `userSelect: 'none'` on the text elements while the gesture is active.
18+
:::
19+
1620
Please refer to the React Native documentation below:
1721

1822
* [PanResponder](https://reactnative.dev/docs/panresponder)

0 commit comments

Comments
 (0)