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

Ctrl-A scrolls spreadsheet to upper left #8

Open
Merlin04 opened this issue Jul 4, 2021 · 0 comments
Open

Ctrl-A scrolls spreadsheet to upper left #8

Merlin04 opened this issue Jul 4, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Merlin04
Copy link
Member

Merlin04 commented Jul 4, 2021

Describe the bug
When you press Ctrl-A, the spreadsheet scrolls to cell [0, 0].

Expected behavior
The spreadsheet should not scroll when Ctrl-A is pressed. This issue isn't that big of a deal but it's inconsistent with Google Sheets, and a goal of this project is to have very similar behavior to Google Sheets/Excel to make it more smooth to use.

Additional context
The issue is because pressing Ctrl-A calls setDragSelection, and there's a useEffect in Spreadsheet.tsx that will scroll to the second coordinate point in the dragSelection whenever the dragSelection array is updated. Fixing this will require modifying how that works.

@Merlin04 Merlin04 added enhancement New feature or request help wanted Extra attention is needed labels Jul 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant