FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Clear finalized edit overlays to prevent ghost boxes and hover highlights by mattdawkins · Pull Request #1961 · Kitware/dive · GitHub

/ dive Public

Clear finalized edit overlays to prevent ghost boxes and hover highlights - #1961

Merged
BryonLewis merged 1 commit into
mainfrom
fix/clear-finalized-edit-overlays
Sep 23, 2026
Merged

BryonLewis merged 1 commit into
mainfrom
fix/clear-finalized-edit-overlays

Conversation

Copy link
Copy Markdown
Member

After right-click finalization, GeoJS can leave completed line and box annotations on an editing layer even though its mode is already disabled. The early return added in #1932 skips cleanup in that state, leaving ghost boxes on later frames and overlays that highlight on hover.

Always clear the annotations and editing state when disabling the layer. Skip only the redundant mode(null) call, preserving the companion layer’s active interactor actions.

Adds a regression test using real GeoJS right-click events followed by deselection and a frame without the detection. Validation: targeted layer tests, ESLint, and TypeScript checking.

BryonLewis merged commit 85df9fe into main Sep 23, 2026
3 checks passed
BryonLewis deleted the fix/clear-finalized-edit-overlays branch September 23, 2026 17:03
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL