Compare commits
2 commits
b6c6f1e78c
...
9f52cad7e9
Author | SHA1 | Date | |
---|---|---|---|
|
9f52cad7e9 | ||
|
913240c33b |
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ protected:
|
|||
void on_layout();
|
||||
void on_mouse_button(MouseButtonEvent &event);
|
||||
private:
|
||||
double m_scroll_step { 5.0 };
|
||||
double m_scroll_step { 25.0 };
|
||||
Point m_scroll { 0, 0 };
|
||||
std::shared_ptr<Widget> m_target { nullptr };
|
||||
};
|
||||
|
|
|
@ -273,7 +273,7 @@ void Widget::handle_mouse_button_event(MouseButtonEvent &event) {
|
|||
}
|
||||
|
||||
void Widget::dispatch_event(Event &event) {
|
||||
if (!m_accepts_events)
|
||||
if (!m_accepts_events || !m_did_init)
|
||||
return;
|
||||
|
||||
on_event(event);
|
||||
|
|
Loading…
Reference in a new issue