Skip to content

Implement dragging the visibility/lock icons in the Layers panel to toggle each - #4152

Merged
Keavon merged 2 commits into
masterfrom
layers-panel-eye-drag
May 15, 2026
Merged

Keavon merged 2 commits into
masterfrom
layers-panel-eye-drag

Conversation

@Keavon

@Keavon Keavon commented May 15, 2026

Copy link
Copy Markdown
Member

Closes #2886.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements a drag-toggle manager that enables users to toggle layer visibility and lock states by dragging across buttons. Review feedback identifies a potential issue with the manager's global state in multi-panel environments, recommending a transition to a listener-based approach. Additionally, the CSS for the drag-toggle placeholder requires adjustments to its width and positioning to maintain consistency with the standard icon button layout in the Layers panel.

Comment thread frontend/src/managers/drag-toggle.ts Outdated
Comment thread frontend/src/components/panels/Layers.svelte
@Keavon
Keavon merged commit 79df7cf into master May 15, 2026
10 checks passed
@Keavon
Keavon deleted the layers-panel-eye-drag branch May 15, 2026 22:16
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.

Multi toggle layer visibility through click and drag on "eye"-icon

1 participant