1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-16 00:10:48 +02:00

Fixed scrolling blocking with Ctrl

This commit is contained in:
Ivan Savenko
2023-05-07 19:44:34 +03:00
parent a6fda031ed
commit 8b27780c11
2 changed files with 26 additions and 8 deletions

View File

@@ -52,8 +52,11 @@ private:
/// currently acting player
PlayerColor currentPlayerID;
/// uses EDirections enum
bool scrollingCursorSet;
/// if true, cursor was changed to scrolling and must be reset back once scroll is over
bool scrollingWasActive;
/// if true, then scrolling was blocked via ctrl and should not restart until player move cursor outside scrolling area
bool scrollingWasBlocked;
const CSpell *spellBeingCasted; //nullptr if none