Fix for the freezing when no on_touch_release function

This commit is contained in:
Erwin Ried
2020-09-25 03:34:05 +02:00
parent 883a62238d
commit f3503e6844
2 changed files with 5 additions and 5 deletions

View File

@@ -378,8 +378,8 @@ private:
class Button : public Widget {
public:
std::function<void(Button&)> on_select { };
std::function<void(Button&)> on_touch_release { nullptr }; // Executed when releasing touch, after on_select.
std::function<void(Button&)> on_touch_press { nullptr }; // Executed when touching, before on_select.
std::function<void(Button&)> on_touch_release { }; // Executed when releasing touch, after on_select.
std::function<void(Button&)> on_touch_press { }; // Executed when touching, before on_select.
std::function<bool(Button&, KeyEvent)> on_dir { };
std::function<void(Button&)> on_highlight { };