The International Simutrans Forum

Development => Bug Reports => Topic started by: smu42 on February 25, 2010, 11:54:58 pm

Title: Inconsistent center of zoom
Post by: smu42 on February 25, 2010, 11:54:58 pm

Simutrans Version: 102.2.1
Pak128

Problem: When using the mouse wheel or pageUp/pageDown to zoom, the center of the screen moves a little bit.

Proposal: When zooming, the center of the zoom should be (1) the middle of the window or (2) the mouse cursor.

Maybe this (1) is alread the case and some rounding error occurs.
Title: Re: Inconsistent center of zoom
Post by: knightly on February 26, 2010, 10:39:39 am
Problem: When using the mouse wheel or pageUp/pageDown to zoom, the center of the screen moves a little bit.

You are really lucky ;), as my latest viewport patch also fixes this problem. When I wrote the viewport patch, the misalignment is far more obvious, as the viewports may have smaller sizes.
Title: Re: Inconsistent center of zoom
Post by: smu42 on February 27, 2010, 07:22:11 pm
Nice coincidence :)

It works for me, too.
Title: Re: Inconsistent center of zoom
Post by: whoami on February 27, 2010, 09:07:56 pm
Further discussed here: Viewport patch (http://forum.simutrans.com/index.php?topic=4574.0)