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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user