Compare commits
No commits in common. "9f52cad7e963aeb403be8f9396f32a4df84550af" and "b6c6f1e78cda6c7c4fbfd898441acba908b06c53" have entirely different histories.
9f52cad7e9
...
b6c6f1e78c
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ protected:
|
||||||
void on_layout();
|
void on_layout();
|
||||||
void on_mouse_button(MouseButtonEvent &event);
|
void on_mouse_button(MouseButtonEvent &event);
|
||||||
private:
|
private:
|
||||||
double m_scroll_step { 25.0 };
|
double m_scroll_step { 5.0 };
|
||||||
Point m_scroll { 0, 0 };
|
Point m_scroll { 0, 0 };
|
||||||
std::shared_ptr<Widget> m_target { nullptr };
|
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) {
|
void Widget::dispatch_event(Event &event) {
|
||||||
if (!m_accepts_events || !m_did_init)
|
if (!m_accepts_events)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
on_event(event);
|
on_event(event);
|
||||||
|
|
Loading…
Reference in a new issue