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

Draggable sticks to cursor when using control + click on MacOS #913

Open
rwshaw opened this issue Sep 21, 2023 · 0 comments
Open

Draggable sticks to cursor when using control + click on MacOS #913

rwshaw opened this issue Sep 21, 2023 · 0 comments

Comments

@rwshaw
Copy link

rwshaw commented Sep 21, 2023

Overview of the problem

Using MacOS on any browser or react-rnd version. Control+clicking on a react-rnd component - usually used to open a context menu. Causes the component to be stuck to the cursor when the context menu is closed.

I'm using react-rnd version [10.4.1]

My browser is: Chrome [117.0.5938.62]

Reproduced project

Present on the sandbox on the repo:
https://codesandbox.io/s/y3997qply9

Description

When using the control+left click on a draggable (which will open the context menu) the draggable item is then stuck to the cursor after the context menu is closed.

Steps to Reproduce

  1. Control + click on a react-rnd component using MacOS
  2. Left click to close the context menu
  3. Observe the component stuck to the cursor

Expected behavior

Control + left clicks to not activate the drag of the component

Actual behavior

The component is stuck to the cursor.

rnd

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

No branches or pull requests

1 participant