Ticket #1126 (new defect)
Atlas can become stuck in scrolling state when using menu
|Reported by:||historic_bruno||Owned by:|
|Priority:||Nice to Have||Milestone:||Backlog|
Description (last modified by historic_bruno) (diff)
To reproduce on wxMSW 2.8:
- Open Atlas
- Use scrolling hotkey(s) WASDQE or arrow keys to scroll the map
- While still holding it down, move the mouse over the menu bar
- Release scroll hotkey(s)
- Observe map is still scrolling, and can't be easily stopped. In fact you must press the same hotkey(s) again to reset the scrolling state.
It seems what's happening is the menu bar is handling all key releases and not passing them onto other controls, like the game canvas, so they never get notified that a key went up. Maybe we should stop scrolling any time the mouse leaves the game canvas (we already do when mouse capture is lost), is there any reason why someone would want to continue scrolling while moving the mouse out of the game canvas?