Skip to content

Fix: Viewport scrolling#6620

Merged
Gymnasiast merged 1 commit intoOpenRCT2:developfrom
trigger-segfault:fix-scroll-jittering
Nov 8, 2017
Merged

Fix: Viewport scrolling#6620
Gymnasiast merged 1 commit intoOpenRCT2:developfrom
trigger-segfault:fix-scroll-jittering

Conversation

@trigger-segfault
Copy link
Copy Markdown
Contributor

@trigger-segfault trigger-segfault commented Nov 5, 2017

Shaking while at the edge of the map has been completely eliminated. In
order to do this, comparison with tile height was also removed which
fixed a few outlier cases.

The main cause was viewport axis were only being set if it's respective
isometric axis was at the boundary, instead of either isometric axis.
Viewport no longer gets stuck which was related to the shaking in the
end. (#996, #2589, #2875)

Refactored viewport_update_position. I moved
viewport_set_underground_flag above the bounds checking function since
it had no relation to it.

Scrolling on the map edge with arrow keys or mouse edge will now go the
same speed in both directions. (#2254)

Added changelog entry.

Shaking while at the edge of the map has been completely eliminated. In
order to do this, comparison with tile height was also removed which
fixed a few outlier cases.

The main cause was viewport axis were only being set if it's respective
isometric axis was at the boundary, instead of either isometric axis.
Viewport no longer gets stuck which was related to the shaking in the
end. (OpenRCT2#2875)

Refactored viewport_update_position. I moved
viewport_set_underground_flag above the bounds checking function since
it had no relation to it. (OpenRCT2#996, OpenRCT2#2589)

Scrolling on the map edge with arrow keys or mouse edge will now go the
same speed in both directions. (OpenRCT2#2254)

Added changelog entry.
@duncanspumpkin
Copy link
Copy Markdown
Contributor

This has been tried to be fixed a few times. Always with just as many bugs as before. Have you tested small maps, using keyboard movement keys, using mouse movement?

@trigger-segfault
Copy link
Copy Markdown
Contributor Author

Can confirm: Small maps work just as well. I tried 13x13. Arrow movement, dragging movement, and edge scrolling.

@rwjuk
Copy link
Copy Markdown
Contributor

rwjuk commented Nov 7, 2017

Can also confirm that this fixes the various issues listed above, and works with very small maps.

@Gymnasiast Gymnasiast merged commit 4c30656 into OpenRCT2:develop Nov 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants