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

GameOfLife: Don't toggle cells on mouse move when placing patterns

Previously, it was very easy to inadvertently toggle cells when
placing a pattern by dragging the mouse slightly.
This commit is contained in:
Tim Ledbetter 2023-09-19 22:15:17 +01:00 committed by Andreas Kling
parent 6eaae726fa
commit 12adaac08d
3 changed files with 5 additions and 2 deletions

View file

@ -84,6 +84,7 @@ private:
NonnullOwnPtr<Board> m_board;
bool m_running { false };
bool m_dragging_enabled { true };
int m_running_timer_interval { 500 };
int m_running_pattern_preview_timer_interval { 100 };