• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

HSF / phoenix / 34468959179
55%
master: 38%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 10 Sep 2026 11:04AM UTC
Jobs 1
Files 59
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Sep 2026 10:59AM UTC coverage: 47.548% (+0.4%) from 47.174%
34468959179

push

github

web-flow
fix(event-display): stop leaking a contextmenu listener per grid shift (#1002)

`shiftCartesianGrid` attached its stop-shifting handler to window as
`rightClickCallback`, a fresh closure created on every call and held only
in a local variable.

Nothing removed the previous closure before adding the next one, so
starting the pointer shift N times left N 'contextmenu' listeners on
window. Only the most recent one could remove itself, and each retained
`this`, keeping the manager alive with it.

`cleanup` could not remove them at all. It only knew about the 'click'
callback, which is stored in a field; the local `rightClickCallback` was
unreachable from there, so every 'contextmenu' listener ever added
survived teardown.

Store the callback in a field the way the sibling callbacks already are,
and share one `removeShiftGridListeners` helper between the right-click
path, the start of a new shift, and `cleanup`, so the listeners are
removed on all three routes.

This is the same class of leak as #989, fixed on the component side in
#993. That fix tore down the `stopShifting` subscription in the dialog
component; the window listener underneath it still leaked.

Added tests covering that repeated shifts do not stack up listeners, that
right-clicking removes both listeners, and that `cleanup` removes them.
The first and third fail before this change.

Fixes #1001

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

857 of 2106 branches covered (40.69%)

Branch coverage included in aggregate %.

11 of 12 new or added lines in 1 file covered. (91.67%)

3216 of 6460 relevant lines covered (49.78%)

203.69 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
7.53
4.64% packages/phoenix-event-display/src/managers/three-manager/index.ts
Jobs
ID Job ID Ran Files Coverage
1 34468959179.1 10 Sep 2026 11:04AM UTC 59
47.55
GitHub Action Run
Source Files on build 34468959179
  • Tree
  • List 59
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #34468959179
  • d0633d00 on github
  • Prev Build on main (#34468860991)
  • Next Build on main (#34469057217)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc