From 6cb8cab666b52858ab13c41f8421dc3eb88ad3e0 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 23 Oct 2021 07:20:14 +0300 Subject: Mobile: Fixed ListWidget hover item --- src/ui/listwidget.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ui') 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) { } void updateMouseHover_ListWidget(iListWidget *d) { - const iInt2 mouse = mouseCoord_Window(get_Window(), 0); + const iInt2 mouse = mouseCoord_Window( + get_Window(), deviceType_App() == desktop_AppDeviceType ? 0 : SDL_TOUCH_MOUSEID); setHoverItem_ListWidget(d, itemIndex_ListWidget(d, mouse)); } -- cgit v1.2.3