Skip to content

Document the gesture area's zoom names, double tap to zoom and bounded drags - #617

Draft
simonhamp wants to merge 1 commit into
mainfrom
docs/gesture-area-zoom
Draft

simonhamp wants to merge 1 commit into
mainfrom
docs/gesture-area-zoom

Conversation

@simonhamp

Copy link
Copy Markdown
Member

Documents the gesture area changes in NativePHP/mobile-air#716 and NativePHP/mobile-ui#220. Merge once both have shipped.

On the gesture area page:

  • zoom, zoom-min, zoom-max and @zoomEnd are now the names used everywhere, with one note that the pinch names still work.
  • New @doubleTap.zoom entry and a "Double tap to zoom" section, which also explains that @event.modifier="value" passes a value to the phone instead of calling a component method.
  • New "Who gets a drag" section. At whole size a bounded area leaves drags to the pager or drag to close around it. Zoomed in, it takes drags it can use, hands a drag at its edge to a pager or scroll view, and keeps drags from a drag to close.
  • The Zoomable images section now covers the glide after a drag, the hand-off at the edge and the clipping.
  • A photo viewer example: a pager of zoomable photos with the component code.

The gestures guide gets one short paragraph pointing at Zoomable images.

Things to check before merging:

🤖 Generated with Claude Code

…d drags

For NativePHP/mobile-air#716 and NativePHP/mobile-ui#220.

The props, events and the Zoomable images example now use zoom, zoom-min,
zoom-max and @zoomEnd. The zoom prop says once that the pinch names still
work.

Zoomable images gets three new parts. Double tap to zoom covers
@doubleTap.zoom and what an @event.modifier value means. Who gets a drag
explains when a bounded area takes a drag and when it leaves it to a pager,
scroll view or drag to close, including the hand-off at the edge. A photo
viewer puts them together in a pager. Its bullet list also gains the glide
on release, where @Dragend reports, and clipping. The gestures guide links
to the section.

The new labels say 4.9 and mobile-ui 0.11. Neither is in config/docs.php
yet, so the version label test fails until they ship, as it does on #601.
The Events list conflicts with #601 in one hunk: its @trigger entry and
this PR's @zoomEnd both sit right after @Dragend.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant