Commit c8f8cb5
authored
Fix Shift+Click on Canvas Selecting Text in Panels (#1347)
## Description
<!-- Please provide a brief description of the changes made in this pull request. Include any relevant context or reasoning for the changes. -->
Fixes an issue where if the previous selection or active element was inside the sidebar or context panel a shift + click operation on the canvas would select content in that panel instead of on the canvas.
## Related Issue and Pull requests
<!-- Link to any related issues using the format #<issue-number> -->
## Type of Change
<!-- Please delete options that are not relevant -->
- [x] Bug fix
## Checklist
<!-- Please ensure the following are completed before submitting the PR -->
- [ ] I have tested this does not break current pipelines / runs functionality
- [ ] I have tested the changes on staging
## Screenshots (if applicable)
<!-- Include any screenshots that might help explain the changes or provide visual context -->
## Test Instructions
<!-- Detail steps and prerequisites for testing the changes in this PR -->
HOW TO REPRODUCE THE ORIGINAL BUG
go on master branch:
1. click inside the sidebar or context panel
2. shift + drag to select nodes on the canvas
3. text in the panel you click on should be selected
bad!
HOW TO TEST THAT IT'S FIXED
switch to the branch for this PR
1. repeat the steps above
2. text in the panel should no longer get selected - only the nodes you've chosen
good!
## Additional Comments
<!-- Add any additional context or information that reviewers might need to know regarding this PR -->1 parent 1731486 commit c8f8cb5
File tree
1 file changed
+12
-1
lines changed1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
230 | 239 | | |
231 | 240 | | |
232 | 241 | | |
| 242 | + | |
233 | 243 | | |
234 | 244 | | |
235 | 245 | | |
236 | 246 | | |
| 247 | + | |
237 | 248 | | |
238 | | - | |
| 249 | + | |
239 | 250 | | |
240 | 251 | | |
241 | 252 | | |
| |||
0 commit comments