Re: map panning
Posted: Mon Mar 09, 2015 4:43 pm
luciderous wrote:Based on 2015-03-05 (r11854) - 'dev'
- LMB-panning works great! Yet there is default cursor visible when panning - forcing the default game cursor to work everywhere would do the trick. Also, it feels like the old MMB-panning works more smoothly than LMB-panning. Or is it me?
There's a lot of little details that can be played with as far as how, exactly, the drag-pan semantic works. Right now, I'm using OS-drawn cursors, which means that the cursor position used during a game update loop tends to lag a little behind the displayed cursor position. That makes a photoshop-like "grab-pan" semantic look a little funny, as the the cursor's position on the map will wander a bit during a pan.
One possible fix for this is to hide the cursor during panning (which I used to do by default during a middle-mouse pan). I've just exposed an option "hide pan cursor" that lets you switch between hidden and "grab" cursor pans for both left-mouse and middle-mouse pans. Also -- "hidden panning" is inverted relative to the "grab pan" behavior, as that felt more natural to me. Hidden cursor panning is also current a bit faster than visible-cursor panning.
Those of you with strong options about drag-pan semantics, please let me know what version of the setup you prefer. The numbers are easy enough to tweak -- and it's not a semantic I've used much in other games, as I tend to prefer arrow key panning.