Opened 12 years ago

Last modified 10 years ago

#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
Component: Atlas editor Keywords: wxwidgets
Cc: Patch:

Description (last modified by historic_bruno)

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?

Change History (2)

comment:1 by historic_bruno, 12 years ago

Description: modified (diff)

comment:2 by Stan, 10 years ago

I can confirm It does that pressing the shift or ctrl keys too.

Note: See TracTickets for help on using tickets.