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

Fix map edge scrolling after swiping usage

This commit is contained in:
Ivan Savenko
2023-07-03 23:50:09 +03:00
parent 4e80356bea
commit 81b9aec527
3 changed files with 4 additions and 14 deletions

View File

@@ -48,8 +48,6 @@ class MapView : public BasicMapView
{
std::shared_ptr<MapViewActions> actions;
bool isSwiping;
public:
void show(Canvas & to) override;
@@ -64,9 +62,6 @@ public:
/// Moves current view to specified position, in pixels
void onMapSwiped(const Point & viewPosition);
/// Ends swiping mode and allows normal map scrolling once again
void onMapSwipeEnded();
/// Moves current view to specified tile
void onCenteredTile(const int3 & tile);