Skip to content

fix: keep shot handle clicks and faceted chart tips working on Web Awesome 3.15 and Plot 0.6.19 - #7410

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-7402
Nov 27, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-7402

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Two journeys have been red since #7298 bumped Web Awesome 3.14.0 to 3.15.0 and Plot 0.6.17 to 0.6.19. Each has its own cause, and this PR fixes both. Each journey fails on current main with the message #7402 reports and passes on this branch. The chart journey passes in both Chromium and Firefox.

Shot divider (Web Awesome 3.15). wa-comparison now starts its drag on pointerdown and captures the pointer on the divider. So the click that ends a press on the handle targets the divider, not the handle. lf-shot's click handler only skipped clicks whose path held the handle. It took a click on the handle for a click on the image, and jumped the divider to 100. It now skips any click whose path holds the divider, which contains the handle. I checked the widget fix by stashing it: the journey then fails again at the handle click, with position="100".

The journey's synthetic second-finger pointerdown now carries the handle's centre as its coordinates. 3.15 drags from any pointerdown, so the old coordinate-less event dragged the divider to 0. The behaviour that step checks, that a second finger leaves focus where it was, is unchanged.

Faceted chart tips (Plot 0.6.18+). Plot now pools every tip's pointer and every facet's, and shows the pool entry nearest the pointer. An entry that picked nothing still enters the pool, ranked at maxRadius². So it beats any pick more than 40px from the pointer, which a tip: "x" pick across facets often is. When that happens Plot shows no tip, while lf-chart's pick (chart-points.js nearest, which follows 0.6.17's rule) shows one. The maintainer reported this upstream as observablehq/plot#2475. build/@observablehq__plot.patch now carries the fix proposed there: rank only the entries that picked something. The Plot bundle is rebuilt from the patched module, and pnpm run check:browser reproduces it. The Plot row's header in build/vendor.mjs says why the hunk is there and that it goes once Plot ships the fix. With the patch, the teardown's unchanged write: transform on g report on the test's standalone Plot figure is gone too.

This leaves #7402's third failure, the diff file tree's search (test_file_tree_opens_current_diff_files_by_pointer_and_keyboard). That one comes from the @pierre/trees 1.0.0 bump and runs through a different widget.

Refs #7402 — automated triage

…king after the Web Awesome and Plot bumps

#7298 bumped Web Awesome 3.14.0 to 3.15.0 and Plot 0.6.17 to 0.6.19, and two journeys
went red.

Web Awesome 3.15 starts wa-comparison's drag on pointerdown and captures the pointer on
the divider, so the click that ends a press on the handle now targets the divider.
lf-shot's click handler skipped only clicks whose path held the handle, so a click on
the handle jumped the divider to an end as an image click does. It now skips any click
whose path holds the divider, which contains the handle. The journey's synthetic
second-finger pointerdown now carries the handle's coordinates, since 3.15 drags from
any pointerdown and a press at (0, 0) moved the divider to 0.

Plot 0.6.18 pools every tip's pointer, and each facet's, and shows the entry ranked
nearest. An entry that picked nothing still ranks at maxRadius squared, so it outranks
a pick farther than 40px, which a `tip: "x"` pick routinely is across facets. Plot then
showed no tip where lf-chart's pick, which keeps 0.6.17's rule, showed one. Leaf's Plot
patch now ranks only entries that picked something, the fix proposed upstream in
observablehq/plot#2475, and the Plot bundle is rebuilt.

Before: both journeys fail as #7402 reports. After:
test_a_shot_compares_its_frames_with_a_direct_divider and
test_a_chart_picks_the_point_plot_s_own_pointer_picks[browser] and [firefox_browser]
pass.

Refs #7402
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