1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:17:35 +00:00

Spreadsheet: Select the correct cell on click

Due to the margin that is given to be able to select cells for
cutting or extending, have to override the mouse click function
so that the targetted cell is chosen and not the one that may be
beneath the cursor.
This commit is contained in:
martinfalisse 2022-02-08 11:41:23 +01:00 committed by Ali Mohammad Pur
parent 4f0a123b2f
commit 1287238430
2 changed files with 23 additions and 7 deletions

View file

@ -83,6 +83,7 @@ private:
bool m_is_hovering_extend_zone { false };
bool m_is_hovering_cut_zone { false };
GUI::ModelIndex m_starting_selection_index;
GUI::ModelIndex m_target_cell;
RefPtr<Core::Timer> m_horizontal_scroll_end_timer;
RefPtr<Core::Timer> m_vertical_scroll_end_timer;
};