Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoom: Preserve Mouse-on-Land even when zoomed-out; don't screen-center #460

Open
SimonN opened this issue May 6, 2023 · 0 comments
Open
Labels

Comments

@SimonN
Copy link
Owner

SimonN commented May 6, 2023

Lix 0.10.9

My original report for NeoLemmix on Lemmings Forums

In Lix, when you zoom in or out of the map, the zoom preserves mouse-on-land only when after that zoom, the visible area leaves no dark-blue borders at the sides of the screen. Otherwise, Lix avoids showing void (out-of-bound areas shown using the dark blue border color) by shifting more visible land onto the screen. If all the land is visible, Lix will also center the land on the screen.

Expected instead:

  • When the mouse cursor is over a land pixel, zooming should always preverve mouse-on-land, even at the cost of not shifting all the land into view. The canvas should allow some land to remain out of view when there is still void visible.
  • When the mouse cursor is over a void pixel (in the dark blue border beside the visible land), zooming should preserve-on-screen the closest land pixel to the mouse instead, i.e., clamp the preservation land coordinates to the inbound land.
@SimonN SimonN added the 3-bug label May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant