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
commit 1287238430
Notes: sideshowbarker 2024-07-17 17:08:39 +09:00
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;
};