feat(reader): the reader under a finger: a bar of four, every menu one sheet, 44 px targets, the page read out, a double tap that fits the text, the pinch one transform committed at the lift #726
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.52) × (1 − Review Confidence (0.41)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 78% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #726"
general
weight: 0.35
devin-ai-integration[bot]
The PDF reader under a finger, one batch: the owner's review of the reader on his iPhone (2026-11-30: "The adaptation to mobile is not enough: it has not reached an excellent UX design"), the direction he approved that day with its three removals on a phone (the zoom percentage and its menu; typing a page number; the arXiv link out of the bar, the last a host's own slot), and the pinch rebuilt after his two screen recordings showed it stuttering. He tried the rebuilt pinch on his own phone ("much smoother") and approved the whole as shown on staging. Each rule red first, then its fix, a commit of its own, with its section of
docs/PDF-READER.md.The rules behind it
pointer: coarse(in script the kit's one reading of it,@readarxiv/uicoarsePointer, read when asked and never kept;MenuListand the kit'sPopoverfollow it as it changes). No device, no browser's name, no window size is asked.What a reader on a phone gets
Popoverin the chrome open as the sheet the link previews already are (.axt-sheet: a native modal dialog from the window's foot, its safe area kept), rows 44 px. One sheet at a time: the options' language row replaces them with the list, a pick closes it, the focus goes back to the options' button. A page that gives the kit no sheet (the extension's popup and settings page) keeps its popovers.packages/ui/src/controls/backdrop.tscloseOnBackdrop): the dialog takes its backdrop's click and closes. Notclosedby="any": Chromium, Firefox and WebKit close the dialog on the pointer's release, before the click, which then landed on the link under it (a tap beside the options opened a citation's preview; a tap on a preview sheet's backdrop over another citation opened that citation's sheet).@media (pointer: coarse)block inreader.cssand one in the kit'scontrols.css, each hit area a pseudo-element, 14 px between the bar's controls so that none meets another. Before: the bar's buttons 34 × 44, the segments 40 × 27, the menus' rows 30, the swatches 17, the pill's arrows 24. Now every target of the bar 44 × 44 or more at 360, 393 and 412 px, none over another, none outside the window; the options' controls likewise but the appearance's middle segment (36 × 44: a segmented control's segments touch) and the capsule's action and close (34 tall: the capsule clips what it holds for its motion).Linem0..m1, never its ink), so that a heading or a one-line paragraph fits its column; a second double tap goes to the page fit. Read from touch events (zoom-gesture.tsreadDoubleTap) with Android's interval and slops (AOSPViewConfiguration), every listener passive and none for touchmove; a double tap whose first tap acted (a link, a control) zooms nothing. After a rotation, a resize or a display chosen, the paper is fitted by its text's width, never under its page fit: at 393 px a letter page with a 396 pt block reads at 67 % (its 10 pt line at 8.9 CSS px) where its page fit stands at 43 %.transform: translate(…) scale(k)on its pages' stack, k the fingers' own factor, never rounded (a step rounded to PDF.js's hundredth had held the picture for two to four frames at a phone's 57 %: the plateaus of the recordings). Nothing else is written: no scroll, no layout read, no scale told, nothing drawn. At the lift one commit: the transform off, the scale written once on the hundredth PDF.js keeps, the scroll put so that the held point stands where the preview showed it. One preview for the wheel, two fingers and the double tap: the old two-mode preview, its per-page offsets and its scroll-following are gone.zoom-gesture.tsfollowTouches): a touch's events go to the element it came down on for its whole life, even once that element has left the document (Touch Events,Touch.target), and then no ancestor hears them; a page laid or drawn again under resting fingers (the translation's page over the original's) had taken the rest of their gesture, its end included, leaving the stack transformed. Every touch the reader reads is now followed on that element and on the document, each event told once, and a finger the platform's own list no longer holds has lifted. A preview never outlives its gesture (settle).Tests, red first
Harness rows (the reader package's harness), each red on the code before its rule and green after; real touches where a touch is the point (Chromium's own through CDP; WebKit with an iPhone 15's descriptor and Chromium with a Pixel 7's; Firefox in a window of the iPhone's size with a touch screen, its primary pointer coarse):
finger: …(13): the bar on a coarse and a fine pointer at 360, 393 and 412 px; the options as one sheet, a tap on its backdrop over a link opening nothing; the language row replacing the options, a pick closing it; the fine pointer's popover as before; every target of the bar, the options' sheet, the pill's way back and the capsule at 44 or more; the pill read out at pages 9, 10 and 100 with the way back on one line, and kept with its arrows and field on a fine pointer; the thumb a 44 px handle, dragged from the first page to the last with its page read; a tap on the backdrop of a link's preview sheet, over another citation, closes the sheet and opens nothing (red in the three engines: the second citation's sheet opened).fit: …(7) andtap: …(4): the open at the page fit while the text is unknown, as today on a fine pointer and at 1180 px; a rotation fitting the text again; a two-finger pan keeping the fit; a double tap fitting the column about the finger, a second the page, a third the column; a double tap on a link zooming nothing; a double tap whose first tap's element is replaced; the pane's edges while the double tap moves (a reading); the open's cost (a reading: no second draw, page 1 drawn as often as on a fine pointer).pinch one: …(7), by structure, never by a tuned time, over a 24-page fixture (s7-long): two fingers in and out at a phone's text fit, resting 300 ms and moving on, and a trackpad's pinch in and out over both panes: the scroll never moves, style is written on exactly one element a pane, its transform moves in every frame an input came in, no canvas is added and no scale written until the lift (the old code: the scroll moved, 19 elements written, the scale committed under resting fingers, 8 canvases drawn); then one commit, the point held within 0.82 px, no frame showing ground where a page was. The main thread's time a step and the commit's (readings).touch: …round 2 (7) and its double tap: the element under the first finger removed or copied while two fingers zoom; two fingers resting while the translation's page is laid over the original's; the element removed and the touch cancelled; an end that never reaches the reader; the panes swapped under the fingers; one finger's tap after such a gesture. On the code before: 0 of 14 and 0 of 12 moves followed, no commit, the stack left at 1.525 and 1.375; the cancel lost; the swap's preview going on and committed twice. After: every move followed, one commit, nothing left on the stack. #724'stouch: …rows stand green on the new preview, "a pinch over the page pill or the scroll indicator's shown thumb zooms nothing" among them.panes-fit.test.ts(the two scales, the block under a point, the text's extent),zoom-gesture.test.ts(the double tap's reading, a removed target's moves and end, a finger the platform no longer lists),chrome/pinch.test.ts(the wheel's path alone),display-switch.test.ts,scroll-indicator.test.ts, the kit'spopover.test.ts(the sheet: modal, put in the host's element, one at a time, its backdrop's click its own, the focus a tap's sheet holds),preview/sheet.test.ts(noclosedby, its backdrop's click its own).Measured
What only a real phone can confirm
That iOS Safari and Firefox for Android send a removed target's touches to it or to the document as Chromium and WebKit do, and that a touchmove listener added at the second touchstart blocks from the next move there; the pinch's frames on the device (the owner's own phone found it much smoother); that iOS Safari and Firefox for Android deliver the double tap the reader reads from touch events (Playwright's WebKit sends touch events alone for its taps, its Firefox no touch screen); the 44 px targets under a thumb.
Not in this
.pop[data-sheet]), its menus closed by the kit'sshut(a sheet'shidePopover()throws), 14 px between its controls in the bar, its arXiv link moved into the options below 500 px, and the chrome'spinchaction now taking(side, factor, at)with nofrom.Checked
On the branch's head before its last commit (documents only), each by its exit code:
pnpm typecheck0,pnpm lint0, the census 0 (21 held, 0 rose: productCode +412, productModules +3, budgetsUnmeasured +1 for the double tap's 240 ms motion, tenLongest +97, recorded with their reasons),pnpm test0 (14,132 passed) and its hosted-CI form 0,pnpm build0,pnpm e2e:reader0 (105/105),pnpm e2e:framing0 (22/22), the reader package's harness in its two parts 0 (255/255, then the tables 2/2), and the phone rows in WebKit (21/21) and Firefox (14/14). On the head:pnpm lint,pnpm typecheckand the census again, 0. No version moves (PIPELINE, LAYOUT, TRANSLATE, FORMAT): the reader's interface alone.e2e:popupnot run (it reaches the network); the kit's sheet changes nothing in the popup, which gives no sheet.🤖 Generated with Claude Code
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/srjoeee/readarxiv/pull/726" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a>
<!-- devin-review-badge-end -->