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

Prevent interaction start if control clicking #956

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

rwshaw
Copy link

@rwshaw rwshaw commented Mar 4, 2022

Fix to prevent objects sticking to cursor in issue #954. Causes any interaction started with the ctrlKey to be stopped.

Copy link
Owner

@taye taye left a comment

Choose a reason for hiding this comment

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

Thanks for the PR.

I don't think Interaction.ts is the right place to check for this. It would be more appropriate to do this in the auto-start plugin, but with some configuration options. I imagine there are many use cases where ctrl+drag is wanted and the context menu is then prevented from opening.

Ideally we could preserve the current behaviour by default (even with the context menu issue, to avoid a breaking change 😕) and add options to prevent start when certain modifier keys are pressed

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.

None yet

2 participants