Skip to content

Conversation

@goanpeca
Copy link
Collaborator

@goanpeca goanpeca commented Nov 14, 2025

@goanpeca goanpeca self-assigned this Nov 14, 2025
@goanpeca goanpeca requested a review from echarles November 14, 2025 02:52
@goanpeca goanpeca marked this pull request as ready for review November 14, 2025 02:52
Copilot AI review requested due to automatic review settings November 14, 2025 02:52
Copilot finished reviewing on behalf of goanpeca November 14, 2025 02:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes draggable node functionality in VSCode by addressing scroll-related positioning issues and improving the visual appearance of the drag handle.

Key changes:

  • Added scroll offset compensation to correctly position draggable block menu and target line when content is scrolled
  • Changed event listeners from scroller element to document level to prevent misalignment after scrolling
  • Enhanced CSS styling with better hover states and background properties for improved visibility

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
packages/lexical/style/lexical/DraggableBlockPlugin.css Updated opacity values, added background sizing/positioning properties, and improved hover states with rgba colors
packages/lexical/src/plugins/DraggableBlockPlugin.tsx Implemented scroll compensation logic in positioning functions, switched event listeners to document level, added theme class support, and included helper functions to detect scrolling containers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@goanpeca goanpeca force-pushed the fix/draggable-nodes branch from 9bd82a0 to 349d1d2 Compare November 14, 2025 03:05
Copy link
Member

@echarles echarles left a comment

Choose a reason for hiding this comment

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

LGTM Thx @goanpeca

@echarles echarles merged commit 2de72b1 into datalayer:main Nov 14, 2025
6 checks passed
@goanpeca goanpeca deleted the fix/draggable-nodes branch November 14, 2025 13:10
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.

Enable dragging nodes when scrolling

2 participants