Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Brightness adjustment now supports undo
Start an undo command when the drag begins, and finish it when the mouse is released (i.e. at the same time the colour picker is updated). This avoids flooding the undo queue with lots of useless tiny adjustment commands. The incremental drag event is now wxEVT_SCROLL_THUMBTRACK, since an extra wxEVT_SLIDER is emitted *after* the final wxEVT_SCROLL_CHANGED event, resulting in a spurious new undo command being initiated which in turn prevents the previous command from being undone.
- Loading branch information
Matthew Mott
committed
Jul 14, 2021
1 parent
39efc2e
commit 50d683d
Showing
2 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters