diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-23 07:20:14 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-23 07:20:14 +0300 |
commit | 6cb8cab666b52858ab13c41f8421dc3eb88ad3e0 (patch) | |
tree | ccd69cb6dd1dede8efd9c0f84106946f72f229fb /src/ui | |
parent | e9642760d8b25f6249524288891475b5650d2b68 (diff) |
Mobile: Fixed ListWidget hover item
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/listwidget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/listwidget.c b/src/ui/listwidget.c index 3360d71e..c2ba5581 100644 --- a/src/ui/listwidget.c +++ b/src/ui/listwidget.c | |||
@@ -297,7 +297,8 @@ void setHoverItem_ListWidget(iListWidget *d, size_t index) { | |||
297 | } | 297 | } |
298 | 298 | ||
299 | void updateMouseHover_ListWidget(iListWidget *d) { | 299 | void updateMouseHover_ListWidget(iListWidget *d) { |
300 | const iInt2 mouse = mouseCoord_Window(get_Window(), 0); | 300 | const iInt2 mouse = mouseCoord_Window( |
301 | get_Window(), deviceType_App() == desktop_AppDeviceType ? 0 : SDL_TOUCH_MOUSEID); | ||
301 | setHoverItem_ListWidget(d, itemIndex_ListWidget(d, mouse)); | 302 | setHoverItem_ListWidget(d, itemIndex_ListWidget(d, mouse)); |
302 | } | 303 | } |
303 | 304 | ||