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

[feat] Improve canvas zoom #44 #57

Merged
merged 6 commits into from
Apr 19, 2024

Conversation

addegbenga
Copy link
Contributor

@addegbenga addegbenga commented Apr 18, 2024

This PR enhances the zooming functionality of the canvas by focusing on zooming in on the area around the mouse cursor, rather than zooming the entire canvas.

Copy link
Contributor

@b-j-roberts b-j-roberts left a comment

Choose a reason for hiding this comment

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

I didn't know about the d3 library, nice find! Exactly what I was looking for!

This seemed to patch an issue with positioning when opening dev tools as well.

frontend/src/canvas/Canvas.js Show resolved Hide resolved
@b-j-roberts b-j-roberts merged commit 425e38a into keep-starknet-strange:main Apr 19, 2024
3 checks passed
@b-j-roberts
Copy link
Contributor

Great work, thank you!

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.

2 participants