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

Fix the "zoom out" button #1413

Merged
merged 2 commits into from
May 16, 2024
Merged

Fix the "zoom out" button #1413

merged 2 commits into from
May 16, 2024

Conversation

csillag
Copy link
Contributor

@csillag csillag commented May 14, 2024

Earlier, the "zoom out" functionality (of the metaverse graph, in desktop mode) worked by selecting the consensus layer, which had the whole graph as designated area, so zooming to it actually zoomed out.

But then we wanted to make the consensus circle selectable and zoomable, so in #1404 the designated zoom are has been changed. This made is possible to zoom in on selection (on mobile), but has broken the zoom out button (on desktop). (see #1404 (comment) )

So now we are fixing this be introducing a special "fake" layer, just for the components in/around the layer selector, for zooming out: the "universe layer". This layer will have the whole graph as designated zoom area, so selecting this layer will zoom out, while the consensus layer can have it's small area.

Also, since it's no longer always a layer, we are now calling the selection on the graph "area". All related props and functions have been renamed accordingly.

Copy link

github-actions bot commented May 14, 2024

Deployed to Cloudflare Pages

Latest commit: 29f6c8283fe166546102e1d3138c1e0fbafe9b82
Status:✅ Deploy successful!
Preview URL: https://cae364a3.oasis-explorer.pages.dev

@buberdds
Copy link
Contributor

something is wrong after zoom out

Screenshot from 2024-05-14 16-55-35

@csillag csillag force-pushed the csillag/fix-zoom-out-button branch 2 times, most recently from c1ae9c9 to ac8c5c6 Compare May 15, 2024 16:06
Copy link
Member

@lukaw3d lukaw3d left a comment

Choose a reason for hiding this comment

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

oh, it is a strangely broken after zoom out
#1413 (comment)

@csillag
Copy link
Contributor Author

csillag commented May 15, 2024

oh, it is a strangely broken after zoom out
#1413 (comment)

Yeah I still need to debug why that happens.

@csillag csillag force-pushed the csillag/fix-zoom-out-button branch 2 times, most recently from a527451 to 41d622c Compare May 16, 2024 06:44
@csillag
Copy link
Contributor Author

csillag commented May 16, 2024

something is wrong after zoom out

Yeah, thanks, good catch. Fixed.

@csillag csillag requested a review from lukaw3d May 16, 2024 06:45
csillag and others added 2 commits May 16, 2024 09:13
@csillag csillag force-pushed the csillag/fix-zoom-out-button branch from 41d622c to 29f6c82 Compare May 16, 2024 07:14
@csillag csillag merged commit 4f656d6 into master May 16, 2024
8 checks passed
@csillag csillag deleted the csillag/fix-zoom-out-button branch May 16, 2024 12:13
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