Skip to content

Ctrl-A scrolls spreadsheet to upper left #8

Open
@Merlin04

Description

@Merlin04

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions