You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c190837
Browse filesBrowse the repository at this point in the historyBrowse files
feat(DropdownMenu): a finger in the open menu is tracked as UIMenu's list tracks it
Measured on the iOS 26.2 simulator (a pull-down button's 3-row and 30-row
menus): the row under a finger that lands in the menu lights about 160 ms
after the touch (the list's content-touch delay), in a short menu as in a
long one; a tap picks at the lift; a quick drag scrolls a long menu (nothing
lights or picks) and scrubs a short one, picking the row it lifts on.
- MenuSelectionGestureRecognizer (on the gesture system): begins after
UIKit's content-touch delay for a still finger, at the lift for a tap, and
at once from where it landed when it travels past the press slop in a menu
that fits; it fails on travel in a menu that scrolls, and there it never
claims the finger, so a drag after the highlight still scrolls the list.
- useMenuPress takes it as touchTracking: 'uikit': the recognizer drives the
shared action-group tracker (rects read once, highlight = focus, the row
runs through the existing activation inside the lift); a mouse keeps the
pointer model. DropdownMenu and its sub-menus opt in.
[feature] Under a finger, on every touch device, DropdownMenu tracks a finger that lands in its open menu as the list of an iOS menu does: the row under a resting finger lights after UIKit's content-touch delay (150 ms), a tap picks at the lift, and a quick drag scrolls a menu that scrolls and slides the highlight in one that fits. A mouse keeps the pointer model. useMenuPress takes the behavior as `touchTracking: 'uikit'`, running it on the gesture system and the shared action-group tracker.
Copy file name to clipboardExpand all lines: packages/core/src/DropdownMenu/DropdownMenu.doc.mjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -276,7 +276,7 @@ export const docs = {
276
276
usage: {
277
277
anatomy,
278
278
description:
279
-
'A dropdown menu that displays a list of actionable items in a popup triggered by a button. Use to present action options as a next step in a process, or to offer contextual actions without cluttering the interface. Like the menus of macOS and iOS, the row under the pointer when it is released is the row that acts, the highlight follows a held mouse or finger, a mouse opens it on press and can drag straight into it, and a finger held on the trigger opens it with the finger down. Under a finger it behaves like UIMenu on iOS: a finger resting on the trigger for 150 ms opens the menu, the finger that opened it picks a row only once it has moved 10 px (so the row that appears under it is never picked by accident), the menu grows out of its trigger and collapses back into it on UIKit\u2019s springs, and a pan that starts outside it dismisses it as the page scrolls. On a phone the popover menu sits over its trigger as UIMenu does: centered on it, top-aligned with it (bottom-aligned when the trigger is in the lower half of the viewport), 8 px from the viewport\u2019s sides.',
279
+
'A dropdown menu that displays a list of actionable items in a popup triggered by a button. Use to present action options as a next step in a process, or to offer contextual actions without cluttering the interface. Like the menus of macOS and iOS, the row under the pointer when it is released is the row that acts, the highlight follows a held mouse or finger, a mouse opens it on press and can drag straight into it, and a finger held on the trigger opens it with the finger down. Under a finger it behaves like UIMenu on iOS: a finger resting on the trigger for 150 ms opens the menu, the finger that opened it picks a row only once it has moved 10 px (so the row that appears under it is never picked by accident), the menu grows out of its trigger and collapses back into it on UIKit\u2019s springs, and a pan that starts outside it dismisses it as the page scrolls. A finger that lands in the open menu lights its row after UIKit\u2019s content-touch delay (150 ms) and a tap picks at the lift; a quick drag scrolls a menu that scrolls and slides the highlight in one that fits. On a phone the popover menu sits over its trigger as UIMenu does: centered on it, top-aligned with it (bottom-aligned when the trigger is in the lower half of the viewport), 8 px from the viewport\u2019s sides.',
0 commit comments