Page 1 of 1

Scroll down (pulling closer to me) zooms out

Posted: Mon Jan 01, 2018 6:49 pm
by BTA
To me, that is counterintuitive, how do I reverse that?

Re: Scroll down (pulling closer to me) zooms out

Posted: Mon Jan 01, 2018 8:49 pm
by Dilvish
BTA wrote:To me, that is counterintuitive, how do I reverse that?
I'm afraid it's rather hardcoded, I suggest you simply adjust your thinking, considering mouse-up to be moving forward, and mouse-down to be pulling back.

If you are a coder, or at least willing to deal with compiling FreeOrion yourself, I think you could invert the mousewheel zoom direction by changing this line to read

Code: Select all

        Zoom(-move, pt);
(And if you are a coder willing to put time into familiarizing yourself with the FreeOrion code, you could make the above be subject to a configuration option and submit a PR for it on our GitHub repo.)

Re: Scroll down (pulling closer to me) zooms out

Posted: Mon Jan 01, 2018 11:56 pm
by BTA
I don't have a mousewheel, I have a touchpad, specifically, a Dell D630, model # PP18L... AH! Maybe this instruction is for Windows? I am using Ubuntu 17.10. What do I change and where is it?

I compiled Freeorion. Imagine, it was a bit more complicated than installing. ;)

Re: Scroll down (pulling closer to me) zooms out

Posted: Tue Jan 02, 2018 12:08 am
by Dilvish
BTA wrote:What do I change and where is it?
Above I included a link to the particular file and line in the latest test version. The version you compiled might be a bit older, so that the line numbers don't match exactly, but with a small bit of searching you should be able to find it. If you don't have an IDE installed for coding with then you could just make the changes with Kate or Kwrite (or whatever editor your system uses if you open the file). The change was just adding that minus sign. Then recompile.

Re: Scroll down (pulling closer to me) zooms out

Posted: Tue Jan 02, 2018 5:35 am
by defaultuser
It works the same as Ctrl + Wheel works for zooming in and out of web browsers. "Up" gets bigger, "down" gets smaller like you had a zoom slider.

It seems like the right way to me.

Re: Scroll down (pulling closer to me) zooms out

Posted: Tue Jan 02, 2018 6:18 am
by MatGB
It's also the default in Civ 5 and several other games I sometimes play.

An option to allow it to be changed would be a good feature request, but the default should be what other stuff does.

Re: Scroll down (pulling closer to me) zooms out

Posted: Tue Jan 02, 2018 8:22 am
by Oberlus
Yeah, I also find the current way the one I'm more used to, many programs do the same.