mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-24 17:31:39 +08:00
* iOS: no blurred emoji on a real keyboard (hide the panel's scroll edge effects) A TestFlight tester (build 32, iPhone19,2, iOS 27.2.1) found the emoji panel "pretty much unusable": the whole suggestion row was blurred smudges, and so were the grid's section names. Cause: iOS 26's automatic scroll edge effect. Inside a keyboard, where the panel sits on the system's glass, every scroll view gets a soft blur along its top, bottom, left and right edges. On the 44 pt suggestion row (and the search results row) the top and bottom effects meet and blur everything; on the grid they blur the section names along the top and the columns at either side while scrolling. The app's --snap-state scenes host the keyboard view outside a keyboard, where iOS adds no effect, so they never showed it. There is no visual effect view or layer filter in the panel. What changed - UIScrollView.hideEdgeEffects() hides all four edge effects (iOS 26+); the grid and EmojiRowView (suggestions and search results) call it. Nothing draws over them, so they need none. - A hairline (palette.separator) between the suggestion row and the grid. - FullKeyboardEngineTests: opens the panel and its search and checks every scroll view hides its four edge effects; it fails on the previous code (the 345x44 pt row). Verified on the Studio's iPhone 18 Pro simulator (iOS 27.2) in a live hosted keyboard (the real HEXKeyboard.appex in the app's hosted-keyboard conversation, driven with AXe taps): before, the row, the section names, the left column after a swipe and the search results were blurred, light and dark; after, all sharp. xcodebuild test: 267 tests, 1 skipped, 0 failures. * iOS: emoji panel clicks on a pick, not on every touch, and a hold types on release Found driving the panel in a live hosted keyboard on the simulator next to the system emoji keyboard. What changed - The grid played the key click and haptic when a cell lit up, which is also how every swipe through the grid starts (cells light on touch-down so taps feel immediate), so scrolling clicked. The click now comes with the pick (didSelect); the key pop-up still shows on touch-down and goes when the scroll starts. - Holding an emoji without skin tones typed it as soon as the hold registered (0.4 s), before the finger lifted, so sliding away couldn't take it back. It now behaves as a slow tap: its pop-up shows while held, and it's typed only if the finger lifts over it. Emoji with skin tones still open the tone picker. Verified in the live keyboard (AXe touch down, hold 1 s, lift): released over ❤️ typed it; released 200 pt away typed nothing; held 👍 opened the tones with the remembered one selected and lifting on a darker tone typed and kept it. Three taps 0.15 s apart typed the three emoji under them; the category bar jumped to Food and drink; a held delete cleared three emoji; search typed "piz" with the letter keys and its first result went into the field; return went back to the panel and ABC to the letters. A tap during a fling's deceleration only stops the scroll, as in the system emoji keyboard. xcodebuild test: 267 tests, 1 skipped, 0 failures.