-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Bug: after press Shift, mouse cannot move the pane anymore but drawing selection zone instead #641
Comments
hi, it is intended that while holding the shift button the selection gets drawn. you can disable this by setting from reading your comment I assume the selection still gets drawn when you already released the shift key. this might be happening because you unfocused the react-flow pane while drawing a selection. maybe this can be fixed by resetting the selection on mouseout / blur of the renderer. |
Hi @chrtze,
I understand it's the intention to draw the selection zone when holding Shift because that's pretty much a popular behavior, but releasing Shift doesn't returns what I can do sooner so I consider this is a bug. Even in your example link, after pressing Shift, I can neither move the pane or move nodes or click on elements to select, but can only draw selection zone (surely I have toggle all the checkboxes on).
Can you provide the code sample? I don't see anything related in the docs. |
Plus, after press Shift, I click on a node to select it, then I click on the pane, the console shows this error:
|
The commit above fixes the |
hi @buitrung, could you check if it works with the next version, we now reset the key state when the window loses focus.
|
After press or hold Shift button, left mouse click will draw the selection zone.
I cannot move the pane around anymore and have to refresh page.
The text was updated successfully, but these errors were encountered: