mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-19 08:36:49 +00:00
parent
c17653dafa
commit
b540716cf4
@ -302,15 +302,16 @@ void Menu_view::Dialog::_handle_input()
|
||||
ev.handle_absolute_motion([&] (int x, int y) {
|
||||
hover_at(x, y); });
|
||||
|
||||
if (ev.hover_leave())
|
||||
unhover();
|
||||
|
||||
ev.handle_touch([&] (Input::Touch_id id, float x, float y) {
|
||||
if (id.value == 0)
|
||||
hover_at((int)x, (int)y); });
|
||||
|
||||
/*
|
||||
* Reset hover model when losing the focus
|
||||
*/
|
||||
if (ev.hover_leave())
|
||||
unhover();
|
||||
ev.handle_touch_release([&] (Input::Touch_id id) {
|
||||
if (id.value == 0)
|
||||
unhover(); });
|
||||
});
|
||||
|
||||
bool const hover_changed = orig_hovered != _hovered
|
||||
|
Loading…
x
Reference in New Issue
Block a user