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

fix(PageLayout): update onMouseDown to check which button is pressed #4022

Merged

Conversation

joshblack
Copy link
Member

Closes #3992

Changelog

New

Changed

  • Update onMouseDown in the vertical resize handler to only start dragging if the "main" mouse button is active during the event

Removed

Rollout strategy

  • Patch release

Testing & Reviewing

  • Verify that the resizable pane no longer fires when right click is used before dragging

@joshblack joshblack requested review from a team and pksjce December 5, 2023 17:50
Copy link

changeset-bot bot commented Dec 5, 2023

🦋 Changeset detected

Latest commit: 705ab50

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Dec 5, 2023

size-limit report 📦

Path Size
dist/browser.esm.js 104.24 KB (+0.01% 🔺)
dist/browser.umd.js 104.76 KB (+0.01% 🔺)

Copy link
Collaborator

@pksjce pksjce left a comment

Choose a reason for hiding this comment

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

Nice fix 👍

@joshblack joshblack added this pull request to the merge queue Dec 5, 2023
Merged via the queue into main with commit 98ad320 Dec 5, 2023
29 checks passed
@joshblack joshblack deleted the fix/update-page-layout-to-only-respond-on-left-click branch December 5, 2023 22:36
@primer primer bot mentioned this pull request Dec 5, 2023
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.

The resizable pane for PageLayout is triggered by right click
2 participants