From cdbc252190a44a06c3914dc14d74afd0b52ea864 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 29 Apr 2020 19:02:00 +0200 Subject: LibGUI: Require a full click on ColorInput's color rect to open picker Let's not open the ColorPicker on mousedown, that was too jarring. --- Libraries/LibGUI/ColorInput.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Libraries/LibGUI/ColorInput.h') diff --git a/Libraries/LibGUI/ColorInput.h b/Libraries/LibGUI/ColorInput.h index d223ce7ff4..cebefbe0dc 100644 --- a/Libraries/LibGUI/ColorInput.h +++ b/Libraries/LibGUI/ColorInput.h @@ -50,6 +50,7 @@ public: protected: virtual void mousedown_event(MouseEvent&) override; + virtual void mouseup_event(MouseEvent&) override; virtual void mousemove_event(MouseEvent&) override; virtual void paint_event(PaintEvent&) override; @@ -62,6 +63,7 @@ private: Color m_color; String m_color_picker_title { "Select color" }; bool m_color_has_alpha_channel { true }; + bool m_may_be_color_rect_click { false }; }; } -- cgit v1.2.3