Skip to content
New issue

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

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

Already on GitHub? # to your account

fix(editor): Fix canvas panning using Control + Left Mouse Button on Windows #12104

Conversation

alexgrozav
Copy link
Member

@alexgrozav alexgrozav commented Dec 9, 2024

Summary

Screen.Recording.2024-12-09.at.14.29.03.mov

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/CAT-339/community-issue-new-canvas-issue-not-able-to-move-canvas-using

#11755

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@alexgrozav alexgrozav self-assigned this Dec 9, 2024
@@ -642,7 +644,7 @@ provide(CanvasKey, {
@connect="onConnect"
@connect-end="onConnectEnd"
@pane-click="onClickPane"
@contextmenu="onOpenContextMenu"
@pane-context-menu="onOpenContextMenu"
Copy link
Member Author

Choose a reason for hiding this comment

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

New event name after update

@@ -147,10 +147,12 @@ const selectionKeyCode = ref<true | null>(true);

onKeyDown(panningKeyCode.value, () => {
selectionKeyCode.value = null;
panningMouseButton.value = [0, 1];
Copy link
Member Author

Choose a reason for hiding this comment

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

0 - Left mouse button
1 - Middle mouse button

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Dec 9, 2024
Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

Copy link
Contributor

github-actions bot commented Dec 9, 2024

⚠️ Some Cypress E2E specs are failing, please fix them before merging

Copy link

cypress bot commented Dec 9, 2024

n8n    Run #8256

Run Properties:  status check passed Passed #8256  •  git commit 2f7365ac54: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 alexgrozav 🗃️ e2e/*
Project n8n
Branch Review cat-339-community-issue-new-canvas-issue-not-able-to-move-canvas-2
Run status status check passed Passed #8256
Run duration 04m 37s
Commit git commit 2f7365ac54: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 alexgrozav 🗃️ e2e/*
Committer Alex Grozav
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 480
View all changes introduced in this branch ↗︎

Copy link
Contributor

github-actions bot commented Dec 9, 2024

✅ All Cypress E2E specs passed

@alexgrozav alexgrozav merged commit 43009b6 into master Dec 10, 2024
63 checks passed
@alexgrozav alexgrozav deleted the cat-339-community-issue-new-canvas-issue-not-able-to-move-canvas-2 branch December 10, 2024 12:12
@github-actions github-actions bot mentioned this pull request Dec 11, 2024
@janober
Copy link
Member

janober commented Dec 11, 2024

Got released with n8n@1.72.0

@alexgrozav alexgrozav added the release/backport Changes that need to be backported to older releases. label Dec 12, 2024
ivov pushed a commit that referenced this pull request Dec 12, 2024
@github-actions github-actions bot mentioned this pull request Dec 12, 2024
ivov pushed a commit that referenced this pull request Dec 12, 2024
netroy pushed a commit that referenced this pull request Dec 12, 2024
tomi pushed a commit that referenced this pull request Dec 12, 2024
@github-actions github-actions bot mentioned this pull request Dec 12, 2024
riascho pushed a commit that referenced this pull request Jan 14, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
n8n team Authored by the n8n team release/backport Changes that need to be backported to older releases. Released ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants