SirDamnALot wrote:In windowed mode, with enough desktop margin around the window.
1. Start on the middle of the screen and move the courser to the left. Notice when the map starts to pan. (for me: really close to border)
2. Move the courser further, outside the window. The map is probably still panning for a bit and hits left most position.
3. Move the courser outside the window to the other side.
4. Slowly move the courser from the right towards the game window. Notice when the map starts to pan. (for me: quite outside the border)
I think the border distance is consistent, regardless of the direction of approach.
The tricky thing is that the scroll speed from edge panning is fast -- so when moving out from the center, you'll usually hit the max pan extent well before you leave the 50px border in which panning is triggered.
SirDamnALot wrote:(Bonus fun: instead left and right, try up and down, but put the game window faar away to the left or right. Panning on the Y axis works for any courser position on the X axis
)
That's a bug
As of r15031, this should not happen. Also, I've changed edge panning to only trigger in the case that the window has the keyboard focus -- which I think makes it feel a little more natural to me.
SirDamnALot wrote:But I admit, this is a gut feeling that this is wrong. If the boundaries would move completely inside the window, you would inadvertly pan while managing your planet report, confirming event bubbles, click next turn or accessing the top bar with the ressource summary.
So, no, I don't really have a clue what would be better
Yeah, bottom line, I'm not even 100% sure that letting people have edge panning on while in windowed mode is a good idea. A few months ago, I had the feature disabled entirely if we weren't in fullscreen mode with cursor capture turned on. But, then there was a bug report regarding an issue with fullscreen edge panning setups on certain unusual monitor configurations, so, I went ahead an unlinked the options.
The default value for edge panning in windowed mode should certainly be "off", however, and right now, I don't think it is. I should fix that.
edited by sven: As of r15032, I've changed around the behaviors of the options related to edge panning / cursor capture. In fullscreen cursor capture mode, edge panning is now always on. If cursor capture mode is off, and/or if you're in windowed mode, then edge panning is only on if you enable the option "windowed edge panning". This option will be off by default in new installs, but most current testers will probably have it set to "on", due to quirks of implementation in the old system.