Tester report (X, Craig Davison): tapping an emoji category sometimes did
nothing and needed a second tap.
Reproduced in the keyboard in a hosted field (iPhone 17 Pro simulator, iOS
27.2, AXe taps on Food and drink with the panel on Smileys):
- Before #2139, taps 1-14 pt inside the bar's 38 pt band (y 762, 790 of a
756-794 bar) and between emoji in the grid never reached the keyboard: a
logged hitTest on FullKeyboardView saw no touch at all. iOS passed them to
the app behind, because the panel, its bar and its cells are clear and
only the icons and emoji drew anything. #2139's opaque backdrop now sits
under the panel, and those taps arrive.
- Still on origin/dev: taps in the 4 pt gap over the bar and the 5 pt margin
under it hit no view (y 754, 797, 798 did nothing).
Fix: the panel routes every touch below the grid to the bar key under it
(ABC left of the bar, delete right of it, else the category button by x),
and those keys count touches in that band as inside (BarButton and a new
PanelKeyButton.hitOutsets, zero by default, so the recording panel's keys
are unchanged). After: y 754, 762, 790, 797 and 798 all open Food and
drink; a tap on the grid's last row still picks its emoji.
Timing: the probe scene now taps a category every 8 frames, each for the
first time and then again. On the simulator every tap's next frames stayed
at 17 ms but one at 31-33 ms, the same before and after this branch, so no
main-thread work on a category change shows up there; an iPhone is
unmeasured. Rapid taps and taps during a fling (AXe, 6 cases) all landed.
New EmojiSuggesterTests case: every bar button takes points over, under
and beside it, ABC and delete take the band's ends, and the grid keeps its
own taps.