Skip to content

Commit f417709

Browse files
m-bertCopilot
andauthored
[Docs] Mention shouldCancelWhenOutside default in Native on Android (#4242)
## Description Our docs incorrectly stated that onlu `LongPress` and `Tap` use `shouldCancelWhenOutside` set to `true` by default. This is also the case for `Native` gesture on Android. I've also changed some of the legacy pages to symlinks, seems that it has been missed in previous PRs. If there were any differences (checked with `diff` tool), I've copied newer content from `legacy-gestures` and then created symlink. ## Test plan Read docs 🤓 --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 183f348 commit f417709

10 files changed

Lines changed: 20 additions & 167 deletions

packages/docs-gesture-handler/docs/gestures/_shared/base-gesture-config.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ shouldCancelWhenOutside: boolean | SharedValue<boolean>;
1919

2020
When `true`, the handler will stop recognition whenever the finger leaves the area of the connected view.
2121
Default value of this property is different depending on the handler type.
22-
Most handlers' `shouldCancelWhenOutside` property defaults to `false` except for the [`LongPressGesture`](/docs/gestures/use-long-press-gesture) and [`TapGesture`](/docs/gestures/use-tap-gesture) which default to `true`.
22+
Most handlers' `shouldCancelWhenOutside` property defaults to `false` except for the [`LongPress`](/docs/gestures/use-long-press-gesture), [`Tap`](/docs/gestures/use-tap-gesture) and [`Native`](/docs/gestures/use-native-gesture) (on Android and web), which default to `true`.
2323

2424
### hitSlop
2525

packages/docs-gesture-handler/docs/legacy-gestures/_shared/base-continuous-gesture-callbacks.md

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../versioned_docs/version-2.x/gestures/_shared/base-continuous-gesture-callbacks.md

packages/docs-gesture-handler/docs/legacy-gestures/_shared/base-continuous-gesture-config.md

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../versioned_docs/version-2.x/gestures/_shared/base-continuous-gesture-config.md

packages/docs-gesture-handler/docs/legacy-gestures/_shared/base-gesture-callbacks.md

Lines changed: 0 additions & 33 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../versioned_docs/version-2.x/gestures/_shared/base-gesture-callbacks.md

packages/docs-gesture-handler/docs/legacy-gestures/_shared/base-gesture-config.md

Lines changed: 0 additions & 68 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../versioned_docs/version-2.x/gestures/_shared/base-gesture-config.md

packages/docs-gesture-handler/docs/legacy-gestures/_shared/base-gesture-event-data.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)