mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Implemented panning/swiping gesture for sliders
This commit is contained in:
@@ -39,7 +39,6 @@ BattleFieldController::BattleFieldController(BattleInterface & owner):
|
||||
owner(owner)
|
||||
{
|
||||
OBJ_CONSTRUCTION_CAPTURING_ALL_NO_DISPOSE;
|
||||
setMoveEventStrongInterest(true);
|
||||
|
||||
//preparing cells and hexes
|
||||
cellBorder = IImage::createFromFile("CCELLGRD.BMP", EImageBlitMode::COLORKEY);
|
||||
@@ -625,3 +624,10 @@ void BattleFieldController::show(Canvas & to)
|
||||
|
||||
renderBattlefield(to);
|
||||
}
|
||||
|
||||
bool BattleFieldController::receiveEvent(const Point & position, int eventType) const
|
||||
{
|
||||
if (eventType == HOVER)
|
||||
return true;
|
||||
return CIntObject::receiveEvent(position, eventType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user