Skip to content

Properly save and load scroll offset and zoom#460

Merged
BenjaTK merged 2 commits intogaea-godot:2.0from
BenjaTK:scroll_offset
Oct 13, 2025
Merged

Properly save and load scroll offset and zoom#460
BenjaTK merged 2 commits intogaea-godot:2.0from
BenjaTK:scroll_offset

Conversation

@BenjaTK
Copy link
Collaborator

@BenjaTK BenjaTK commented Oct 13, 2025

Scroll offset and zoom wasn't being saved properly before. It now is, and it's saved (for the session only) in GaeaGraph. I also had to change some order of operations to make it load properly. The previous way we did it was a bit convoluted and unnecessary, I think having it as a variable in GaeaGraph makes a lot of sense.

@BenjaTK BenjaTK added the ✨ enhancement New feature or request label Oct 13, 2025
Copy link
Collaborator

@Zehir Zehir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@BenjaTK BenjaTK merged commit 88173da into gaea-godot:2.0 Oct 13, 2025
4 checks passed
@BenjaTK BenjaTK added 🐞 bug Something isn't working and removed ✨ enhancement New feature or request labels Oct 13, 2025
@BenjaTK BenjaTK deleted the scroll_offset branch October 16, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants