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

Duplicate cursor when alt is pressed #6115

Merged
merged 6 commits into from
Jul 24, 2024
Merged

Duplicate cursor when alt is pressed #6115

merged 6 commits into from
Jul 24, 2024

Conversation

gbalint
Copy link
Contributor

@gbalint gbalint commented Jul 23, 2024

Problem:
We should show the duplicate mouse cursor when alt is pressed, even before the interaction starts (so the user knows what is going to happen).

Fix:
Set the canvas control cursor to the duplicate cursor when alt is pressed.

Manual Tests:
I hereby swear that:

  • I opened a hydrogen project and it loaded
  • I could navigate to various routes in Preview mode

Fixes #6083

@gbalint gbalint marked this pull request as ready for review July 23, 2024 16:54
Copy link
Contributor

github-actions bot commented Jul 23, 2024

Try me

Copy link

relativeci bot commented Jul 23, 2024

#13493 Bundle Size — 62.61MiB (~+0.01%).

2d7014e(current) vs 6339ece master#13490(baseline)

Warning

Bundle contains 70 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Regression 1 regression
                 Current
#13493
     Baseline
#13490
Regression  Initial JS 45.68MiB(~+0.01%) 45.68MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 21.52% 21.5%
No change  Chunks 31 31
No change  Assets 34 34
No change  Modules 4376 4376
No change  Duplicate Modules 523 523
No change  Duplicate Code 31.65% 31.65%
No change  Packages 469 469
No change  Duplicate Packages 70 70
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#13493
     Baseline
#13490
Regression  JS 62.6MiB (~+0.01%) 62.6MiB
Improvement  HTML 11.16KiB (-0.33%) 11.2KiB

Bundle analysis reportBranch fix/duplicate-cursorProject dashboard

@gbalint gbalint merged commit a43854d into master Jul 24, 2024
14 checks passed
@gbalint gbalint deleted the fix/duplicate-cursor branch July 24, 2024 12:55
gbalint added a commit that referenced this pull request Jul 25, 2024
**Problem:**
In #6115 I did not put
the logic into the proper, already existing function, and I caused a
regression (duplicate cursor was shown when alt-z was pressed)

**Fix:**
Revert my original solution and put the logic into the existing
`cursorForKeysPressed` function.
Add new tests to make sure this regression does not happen again.

**Manual Tests:**
I hereby swear that:

- [x] I opened a hydrogen project and it loaded
- [x] I could navigate to various routes in Preview mode
liady pushed a commit that referenced this pull request Dec 13, 2024
**Problem:**
We should show the duplicate mouse cursor when alt is pressed, even
before the interaction starts (so the user knows what is going to
happen).

**Fix:**
Set the canvas control cursor to the duplicate cursor when alt is
pressed.

**Manual Tests:**
I hereby swear that:

- [x] I opened a hydrogen project and it loaded
- [x] I could navigate to various routes in Preview mode

Fixes #6083
liady pushed a commit that referenced this pull request Dec 13, 2024
**Problem:**
In #6115 I did not put
the logic into the proper, already existing function, and I caused a
regression (duplicate cursor was shown when alt-z was pressed)

**Fix:**
Revert my original solution and put the logic into the existing
`cursorForKeysPressed` function.
Add new tests to make sure this regression does not happen again.

**Manual Tests:**
I hereby swear that:

- [x] I opened a hydrogen project and it loaded
- [x] I could navigate to various routes in Preview mode
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.

Drag To Duplicate fixes
3 participants