1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:48:11 +00:00

LibGUI: Make NumericInput respond to the mouse wheel

Scroll the mouse wheel over a NumericInput to quickly change the value.
This matches the SpinBox behavior.
This commit is contained in:
Sam Atkins 2024-01-08 17:43:09 +00:00 committed by Sam Atkins
parent 4b96136803
commit da349607a3
2 changed files with 11 additions and 0 deletions

View file

@ -22,6 +22,8 @@ public:
void set_max_number(i64 number);
void set_current_number(i64 number, GUI::AllowCallback allow_callback = GUI::AllowCallback::Yes);
virtual void mousewheel_event(GUI::MouseEvent&) override;
private:
NumericInput();
void on_focus_lost();