Repository navigation
feat(web): hide timeline events while holding Alt - #1195
Merged
Merged
Conversation
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
October 29, 2026 07:37
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces the ability to hide timeline events (e.g., when holding the Alt key) across the timeline rendering, hover overlay, and log lookup components. The feedback highlights two important issues: first, calling onMouseEvent directly inside an effect block in TimelineChartComponent registers unintended signal dependencies, which should be avoided by wrapping the call in untracked(); second, manually adding a blur event listener to window in CaptureShiftKeyDirective without cleanup causes a memory leak, which can be resolved by using Angular's @HostListener('window:blur') decorator.
Merged
via the queue into
GoogleCloudPlatform:main
with commit Oct 29, 2026
7b2279a
17 checks passed
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.
Summary
When a timeline row contains many dense events, event markers obscure the underlying revision bars and crowd out revisions in the hover overlay, making it difficult to inspect or click revisions directly. Additionally, the vertical cursor line overlay intercepted pointer events on the timeline canvas.
This change hides events while holding the
Altkey so users can unobstructedly inspect and click revisions behind dense events:Altis held, and immediately re-evaluates hit-testing at the current pointer position whenAltis pressed or released.Altis held so surrounding revisions remain visible within the overlay log limit.pointer-events: noneon the cursor time label and vertical line overlays so they no longer absorb mouse movement events over the chart canvas.Alternatives Considered
ShiftorCtrlas the modifier key:Shiftis already bound to switching the timeline scroll mode to time-axis scaling, andCtrltriggers wheel zooming as well as the browser context menu on macOS when clicking.Altavoids conflicting with existing scroll, zoom, and click interactions.