Skip to main content
Topic: Inconsistent center of zoom (Read 3462 times) previous topic - next topic

Inconsistent center of zoom


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.

Re: Inconsistent center of zoom

Reply #1
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.

Re: Inconsistent center of zoom

Reply #2
Nice coincidence :)

It works for me, too.

 

Re: Inconsistent center of zoom

Reply #3
Further discussed here: Viewport patch