mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:37:47 +00:00
PixelPaint: Check modifier on mousemove in LineTool
Previously m_constrain_angle could end up not being reset if the keyup-event was lost, for example when opening a dialog. Instead check the modifiers in on_mousemove().
This commit is contained in:
parent
5836710e8f
commit
e718de454e
2 changed files with 3 additions and 20 deletions
|
@ -23,7 +23,6 @@ public:
|
|||
virtual void on_tool_button_contextmenu(GUI::ContextMenuEvent&) override;
|
||||
virtual void on_second_paint(Layer const&, GUI::PaintEvent&) override;
|
||||
virtual void on_keydown(GUI::KeyEvent&) override;
|
||||
virtual void on_keyup(GUI::KeyEvent&) override;
|
||||
|
||||
private:
|
||||
GUI::MouseButton m_drawing_button { GUI::MouseButton::None };
|
||||
|
@ -33,7 +32,6 @@ private:
|
|||
RefPtr<GUI::Menu> m_context_menu;
|
||||
GUI::ActionGroup m_thickness_actions;
|
||||
int m_thickness { 1 };
|
||||
bool m_constrain_angle { false };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue