1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-25 00:37:24 +02:00

Implemented panning/swiping gesture for sliders

This commit is contained in:
Ivan Savenko
2023-05-29 13:08:08 +03:00
parent 2a30eccb2d
commit 360bf48031
21 changed files with 180 additions and 71 deletions

View File

@ -64,10 +64,8 @@ void MapViewActions::mouseMoved(const Point & cursorPosition)
handleHover(cursorPosition);
}
void MapViewActions::wheelScrolled(int distance, bool inside)
void MapViewActions::wheelScrolled(int distance)
{
if (!inside)
return;
adventureInt->hotkeyZoom(distance);
}