[1.1.74] In map view zooming while panning causes jitter

This subforum contains all the issues which we already resolved.
MTyne
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Dec 02, 2022 4:38 am
Contact:

[1.1.74] In map view zooming while panning causes jitter

Post by MTyne »

While in map view, holding middle mouse click to pan the map and zooming, causes the map view to jittery behaviour.
The view first zooms towards the mouse cursor and then immediately snaps the zoomed view into the middle of the window. (This is most noticeable when the mouse cursor is far away from the middle of the window. Low UPS also increases effect)
Without panning, the map view zooms towards the mouse cursor instead of the middle of the window.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3295
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [1.1.74] In map view zooming while panning causes jitter

Post by boskid »

I am not sure what this bug report is about but there were some changes around zooming while panning already made for 2.0 so i am moving this to Pending.
Vega 128
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Feb 15, 2020 6:29 pm
Contact:

Re: [1.1.74] In map view zooming while panning causes jitter

Post by Vega 128 »

this bug is still found in [1.1.110]

Steps to reprodude:
1.) load any world
2.) open the world map vew by pressing the "open world map" key
3.) move the mouse cursor close to the edge of the screen
4.) use the "zom into world" and "zoom out of world" keys to zoom the map

you will notice when scrolling that the map ocasionally moves for 1 frame and then puts what used to be the center of the screen back to the center
this video has been slowed down to 1/16th speed
factorio map scrolling.gif
factorio map scrolling.gif (889.35 KiB) Viewed 249 times
the effect may become more noticable when on a map with a higher ups load but have not confiremed it

Expected result:
idk what shuld have happened when holding the pan map key and zooming the map, but it certainly feels akward with the amount of stuttering. zooming exactly in the middle of the screen like what currently happens seems reasonable.

Reproducibility:
quite reproducable notacable about 15% of the time but it is quick to test, it felt worse(happened about 40% of the time), when i previously tested it in (1.1.105) wich could have also been down to playing on a server with a lot more going on, however the video and testing shown was made in (1.1.110) and on a freshly created singleplayer map.

Possible cuases:
the game proberbly has 2 functions, one that changes the map zoom level and one to change the paning
and i assume that because the function for paning gets executed before the one for zooming therefore it draws the frame then realizes the curser on the map moved and therefore the map gets paned the next frame.

here's the log
factorio-current.log
(11.98 KiB) Downloaded 17 times
Vega 128
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Feb 15, 2020 6:29 pm
Contact:

Re: [1.1.74] In map view zooming while panning causes jitter

Post by Vega 128 »

i tryed to reproduce the bug in 2.0.7

screen centered map zooming unfortunatly no longer works.
wich prevents the flickery zoom behavior.

wich means the bug is resolved.
Post Reply

Return to “Resolved Problems and Bugs”