You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 auseEffect
inSpreadsheet.tsx
that will scroll to the second coordinate point in thedragSelection
whenever thedragSelection
array is updated. Fixing this will require modifying how that works.The text was updated successfully, but these errors were encountered: