mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-25 00:37:24 +02:00
Renamed gesture-related methods, remove unused code
This commit is contained in:
@ -33,7 +33,7 @@ MapViewActions::MapViewActions(MapView & owner, const std::shared_ptr<MapViewMod
|
||||
pos.w = model->getPixelsVisibleDimensions().x;
|
||||
pos.h = model->getPixelsVisibleDimensions().y;
|
||||
|
||||
addUsedEvents(LCLICK | SHOW_POPUP | GESTURE_PANNING | HOVER | MOVE | WHEEL);
|
||||
addUsedEvents(LCLICK | SHOW_POPUP | GESTURE | HOVER | MOVE | WHEEL);
|
||||
}
|
||||
|
||||
void MapViewActions::setContext(const std::shared_ptr<IMapRendererContext> & context)
|
||||
@ -91,7 +91,7 @@ void MapViewActions::gesturePinch(const Point & centerPosition, double lastUpdat
|
||||
pinchZoomFactor = newZoom;
|
||||
}
|
||||
|
||||
void MapViewActions::panning(bool on, const Point & initialPosition, const Point & finalPosition)
|
||||
void MapViewActions::gesture(bool on, const Point & initialPosition, const Point & finalPosition)
|
||||
{
|
||||
pinchZoomFactor = 1.0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user