1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

Spreadsheet: Add states for cursor hovering

Add states for the cutting and extending icons that are to be shown
depending on where the user's cursor is with respect to the target
cell.
This commit is contained in:
martinfalisse 2022-02-08 11:23:15 +01:00 committed by Ali Mohammad Pur
parent a0367aa43b
commit a378e3ccbf
2 changed files with 48 additions and 0 deletions

View file

@ -80,6 +80,8 @@ private:
bool m_should_intercept_drag { false };
bool m_has_committed_to_dragging { false };
bool m_is_dragging_for_copy { false };
bool m_is_hovering_extend_zone { false };
bool m_is_hovering_cut_zone { false };
GUI::ModelIndex m_starting_selection_index;
RefPtr<Core::Timer> m_horizontal_scroll_end_timer;
RefPtr<Core::Timer> m_vertical_scroll_end_timer;