Repository navigation
Clicks clipped by boxes that clip; the Tracker in narrow windows - #8
Merged
Merged
Conversation
In the counter example, scrolling the list a little made "start timer"
stop working: the click selected a row instead. Blitz tests a node's
descendants in its scrolled coordinates, where a point above a list
scrolled down by 40 px counts as inside it, and it does not clip the
descent to the box. The rows scrolled out of the top of the list, which
the list does not draw there, sat under the buttons and took their
clicks. Text overflowing an overflow: hidden box took clicks outside it
the same way (SvelteKit's route announcer).
hit_inner now asks whether the element clips its descendants, as
blitz-paint decides it (overflow other than visible on either axis, or
paint containment; never the root element), and outside its padding box
hits nothing inside it: the element itself on its border, nothing
otherwise. Marked `sepal patch`, written up in PATCH.md.
Tests that clicked rows far below the window relied on the old
behaviour. SvelteDocument::scroll_into_view scrolls a node to the middle
of its boxes and tells the app, as scrollIntoView({ block: 'center' })
does; the Tracker's click() calls it when its target is not under the
pointer, as a user would scroll to it. Three list tests scroll back to
the top after clicking "Show more" or "Show all" at the end of the list,
and the comment field, which a toast partly covers once the pane is
scrolled to it, is clicked at its left end. A counter test scrolls the
list and clicks "start timer"; it failed before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
theetherGit
marked this pull request as draft
November 26, 2026 14:59
With the pane open the list column is the window less the sidebar (240) and the pane (480): 280px in a 1000px window. The toolbar is one line that does not wrap, and the search (at least 160px) and the filters did not fit in it, so Priority ran 76px into the pane, over the issue's title. The line is above the list (z-10, so that rows scrolled under it do not take its clicks), so it was drawn over the pane, and took the pane's clicks there. The filters now wrap inside a box one line high that clips: one that does not fit beside the pane drops out of sight whole, and nothing of the toolbar reaches the pane. Beside the pane the search starts at its smallest and grows into what is left, so Status stays in a 1000px window; at 1200px and wider nothing changes. The clicks on what the box clips depend on the previous commit. A test opens an issue in a 1000px window: each filter fits beside the pane or has wrapped out of sight, and a click where Priority used to reach is the pane's. It failed before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Squeezing the window still put the list's controls on top of the detail pane: below about 720px the list column was 0px wide, its header was drawn over the pane's, and the 480px pane ran out of the window, close button and all. The previous commit only kept the filters in one clipped line, which hid them in a narrow window. The layout assumed room for the sidebar (240px), the list and the pane (480px) side by side, and said nothing about a window without it. The list's header and toolbar were also lifted above everything (`relative z-10`, so that rows scrolled under them would not take their clicks), so what they could not fit was drawn over the pane and took its clicks. The bulk bar, a fixed 560px centred in the list, covered part of the sidebar and the pane whenever the pane was open, at 1200px too. - The list and the pane sit side by side only where both fit: the sidebar, a list of at least 400px (the toolbar's search, Status and Priority, a row's title, the bulk bar's actions) and the pane, 1120px in all. In a narrower window the pane takes the list's place and fills the space; closing it brings the list back. The default 1200px window is unchanged. - Each column keeps what it draws inside itself (the list's clips), and the z-10s go: the first commit makes a box clip clicks as it clips what it draws, which is what they stood in for. - The toolbar wraps onto another line when its controls do not fit, in place of the previous commit's clipped line: every filter, Group and Sort stays visible and clickable in a narrow window. - The bulk bar is 560px or the list's width less 16px a side. - A row shows its labels where the list is at least 760px (a 1000px window); below that the title gets the room. A label that does not fit drops out of sight whole and never pushes the date out of the row. Tests, each failing before: the toolbar wraps inside the list at 700px and every row keeps 100px for its title; at 1120px, the narrowest side by side, the toolbar and the bulk bar stay in the list and the pane takes its own clicks; at 1000px the pane takes the list's place, the list's header is not under it, its close button is in the window, and closing it brings the list back. They replace the previous commit's test, which expected the list beside the pane at 1000px. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At 720px (the smallest window the Tracker asks for, #10) the Board's filter bar ran out of the window, Project out of reach, and the Insights tiles and lower panels were cut off at its right edge. Both are the example's CSS, as headless Chrome shows with the same build: the Board's bar was one line that could not wrap, and the Insights rows were `2fr 1fr 1fr 1fr` and `3fr 2fr`, whose fr tracks cannot shrink below their content (the tiles' large numbers, the priority table). - The Board's filter bar wraps onto another line when it has to, as the list's toolbar does. Its columns scroll sideways, as before. - Insights puts its four tiles in one row where each 1fr tile gets the ~155px its number needs (1120px of window), and two by two below that; its two panels sit side by side from the same width and stack below it. A test opens both at 720px: the Board's filters stay in the window and can be clicked, and every Insights tile and panel is inside it. It failed before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
theetherGit
marked this pull request as ready for review
November 26, 2026 15:31
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.
Fixes these bugs:
Cause
Blitz's hit test (
Node::hit_inner) checks whether a point is inside a box using the box's scrolled coordinates. With the list scrolled down 40 px, a point 37 px above the list counts as inside it. The hit test then descends into the rows and doesn't clip that descent to the box. So the rows scrolled out of the top of the list, which the list doesn't draw there, sat under the buttons and took their clicks. Text overflowing anoverflow: hiddenbox took clicks outside it the same way; that's the route announcer casesepal/adapterworks around.Fix: blitz-dom patch 14
hit_innernow asks whether the element clips its descendants, decided as blitz-paint decides it (should_clipinrender.rs):overflowother thanvisibleon either axis, or paint containment; never the root element.sepal patchand written up incrates/blitz-dom/PATCH.md.Tests
rows_scrolled_out_of_the_list_do_not_take_clicks(counter). It scrolls the list 60 px and clicks the middle of "start timer". It failed before.SvelteDocument::scroll_into_viewscrolls a node to the middle of its boxes and tells the app, likescrollIntoView({ block: 'center' }).click()calls it when its target isn't what's under the pointer, as a user would scroll to it first.pnpm testpasses locally (138 host tests). The host tests passed on both engines with the first commit (134 each).The Tracker in a narrow window (second and third commits)
Squeezing the window put the list's controls on top of the detail pane.
Why:
relative z-10, a workaround for rows scrolled under them taking their clicks). So what they couldn't fit was drawn over the pane and took its clicks.Fix (the third commit replaces the second's one-line clipped toolbar):
z-10workarounds are gone, since the first commit makes clipping apply to clicks.New tests, each failing before:
The Board and Insights in a narrow window (fourth commit)
At 720 px, the smallest window the Tracker asks for in #10:
frtracks can't shrink below their content.The fix:
1frtile gets the ~155 px its number needs, and two by two below that. Its two panels sit side by side from the same width and stack below it.New test:
board_and_insights_fit_the_narrowest_window. It failed before.Renderer or example?
Checked against headless Chrome: the same Tracker build (the web version the Tauri comparison uses) served locally, before and after these commits.
z-10workaround for the click bug made the overflow draw, and take clicks, on top of the pane.Follow-up, not in this PR
sepal/adapter'spointer-events: noneon SvelteKit's route announcer is no longer needed, since the announcer's overflowing text is clipped now.🤖 Generated with Claude Code