This repository was archived by the owner on Nov 7, 2026. It is now read-only.
Repository navigation
Web: keine zitternden Scrollbalken unter Windows - #39
Merged
Merged
Conversation
- Reiterleiste: Bei 125 % Skalierung war der Inhalt 1 px zu hoch, Windows zeigte dort einen winzigen senkrechten Scrollbalken. Die Leiste scrollt jetzt nur noch waagerecht (ebenso Palette auf schmalen Bildschirmen und Codeblöcke in Lektionen). - Diagramm: Größe abgerundet, damit es den sichtbaren Bereich nicht um Bruchteile eines Pixels überragt, und neu gezeichnet wird nur bei echter Größenänderung. - Diagramm und Lernbereich halten Platz für den Scrollbalken frei, damit er beim Erscheinen das Layout nicht verschiebt. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X5L4wNpcXBufwAn6U3AMDj
Owner
Author
|
All three jobs (web-test, swift-test, app-build) failed without starting. GitHub's annotation says: "The job was not started because recent account payments have failed or your spending limit needs to be increased." That is an account billing limit, not this change. Locally Generated by Claude Code |
# Conflicts: # website/app/assets/index-D27AYNVA.js # website/app/assets/index-DFUmRQ-F.js # website/app/assets/index-DXvHM7EL.js # website/app/index.html
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Before: On Windows (classic scrollbars, 125 % display scaling) the scrollbars in the web editor flickered, most visibly with the learning area open. The tab bar above the diagram was 1 px taller than its box (
scrollHeight - clientHeight = 1), so Windows drew a tiny vertical scrollbar there. The diagram SVG was sized from fractional values and could overflow its box by a fraction of a pixel, and the resize observer redrew on every notification.After: The tab bar (and the palette row on narrow screens and lesson code blocks) only scroll horizontally. The diagram size is floored, the canvas only redraws when its size really changes, and the canvas and learning area reserve their scrollbar space (
scrollbar-gutter: stable) so a scrollbar appearing no longer shifts the layout. Mac (overlay scrollbars) looks the same as before.How: CSS
overflow-y: hiddenandscrollbar-gutter: stable, plus a size guard in the canvas ResizeObserver. Reproduced the tab-bar overflow in Chromium with real scrollbars at 1.25 device scale; the actual flicker on Windows still needs a check on a Windows machine.Generated by Claude Code