fheroes2
fheroes2 copied to clipboard
Adventure map, mouse cursor position after the action of selecting a hero with a left click held on the hero sprite
Preliminary checks
- [X] I've checked that there aren't other open issues on the same topic.
Describe the problem requiring a solution
When action is taken to select a hero by a left click held on the hero sprite on the adventure map, the hero becomes the selected hero and the area of the adventure map is centered on the hero. However, the mouse cursor remains at its previous position. I suggest that, at the end of the action, the mouse cursor be positioned on the hero sprite, so in the center of the adventure map area.
In fheroes2:
https://github.com/ihhub/fheroes2/assets/43583994/e17eaa39-bf51-497c-8300-f64190954002
Describe the possible solution
At the end of the action to select a hero by a left click held on the hero sprite on the adventure map, make the mouse cursor to be positioned on the hero sprite, so in the center of the adventure map area.
Additional info
No response