Repository navigation
fix: keep shot handle clicks and faceted chart tips working on Web Awesome 3.15 and Plot 0.6.19 - #7410
Merged
Conversation
…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
leaf-agent
force-pushed
the
fix/issue-7402
branch
from
November 27, 2026 17:30
b0fd70b to
bd1741f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
mainwith 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-comparisonnow starts its drag onpointerdownand 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, withposition="100".The journey's synthetic second-finger
pointerdownnow carries the handle's centre as its coordinates. 3.15 drags from anypointerdown, 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 atip: "x"pick across facets often is. When that happens Plot shows no tip, whilelf-chart's pick (chart-points.jsnearest, which follows 0.6.17's rule) shows one. The maintainer reported this upstream as observablehq/plot#2475.build/@observablehq__plot.patchnow carries the fix proposed there: rank only the entries that picked something. The Plot bundle is rebuilt from the patched module, andpnpm run check:browserreproduces it. The Plot row's header inbuild/vendor.mjssays why the hunk is there and that it goes once Plot ships the fix. With the patch, the teardown'sunchanged write: transform on greport 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/trees1.0.0 bump and runs through a different widget.Refs #7402 — automated triage