v2.6.1
Fixed
pinch({ direction: "in" }) did nothing on many screens.
A pinch-in starts with the fingers at their widest separation, so the previous default (span: 1) put its first two contacts at the screen extremes — on a status bar, a search field, or a bottom sheet. Those views take the gesture before the zoomable surface ever sees it, so zooming out silently failed unless the caller knew to pass span themselves.
span now defaults by direction:
direction |
default span |
why |
|---|---|---|
"out" |
1 |
contacts start near the focal point, so the full span is free range |
"in" |
0.5 |
contacts start far apart, so they must stay over the content |
An explicit span still wins, and "out" behaves exactly as before.
Verified on device with no span argument, on both finger axes:
- a
react-native-gesture-handlerlightbox:3.01x → 1.32x → 1.00x, read back from the app's own state rather than a pixel diff - Google Maps: horizontal and vertical pinch-in both zoom out, with the app keeping focus
The vertical Maps case is the exact gesture that did nothing in 2.6.0.