Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: pan the canvas regardless of what's underneath the pointer #931

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

dhess
Copy link
Member

@dhess dhess commented Jun 1, 2023

Prior to this change, panning could be quite frustrating, because if the cursor was placed over a node or an edge of a ReactFlow, the flow didn't propagate the pan/drag event to the underlying canvas. Now it works everywhere on the canvas, regardless of what's underneath the cursor.

Prior to this change, panning could be quite frustrating, because if
the cursor was placed over a node or an edge of a `ReactFlow`, the
flow didn't propagate the pan/drag event to the underlying canvas. Now
it works everywhere on the canvas, regardless of what's underneath the
cursor.

Signed-off-by: Drew Hess <[email protected]>
@dhess dhess changed the title feat: enable panning the canvas from (practically) anywhere feat: pan the canvas regardless of what's underneath the pointer Jun 1, 2023
@dhess dhess added this pull request to the merge queue Jun 1, 2023
Merged via the queue into main with commit 4ed8edb Jun 1, 2023
@dhess dhess deleted the dhess/pan-on-drag branch June 1, 2023 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deploy service Deploy the backend service for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants