1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Use Scrollable class for all appropriate locations

This commit is contained in:
Ivan Savenko
2023-05-30 18:53:51 +03:00
parent 052d0d314a
commit 0e36a3ab5a
7 changed files with 47 additions and 94 deletions

View File

@@ -28,9 +28,9 @@ void Scrollable::panning(bool on)
void Scrollable::wheelScrolled(int distance)
{
if (orientation == Orientation::HORIZONTAL)
scrollBy(distance * 3);
scrollBy(distance * scrollStep);
else
scrollBy(-distance * 3);
scrollBy(-distance * scrollStep);
}
void Scrollable::gesturePanning(const Point & distanceDelta)