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

Implementing Drag Bound and Zoom Functionality in a Drawing Board #1816

Open
jonas2024181 opened this issue Sep 3, 2024 · 1 comment
Open

Comments

@jonas2024181
Copy link

I am currently developing a simple drawing board with the following stage properties: the position x, y set at (100, 100), and its width and height are 600, 600. I need assistance with implementing two features:

Drag Bound Function: I want to ensure that the drawing board remains within the viewport when dragged. The board should not be allowed to move outside of its defined boundaries.

Zoom Functionality: I need to implement zooming capability, which should allow users to zoom in and out on the drawing board, adjusting the view while maintaining the ability to drag the board within its bounds.

Could you provide guidance on how to implement these features effectively?

@lavrton
Copy link
Member

lavrton commented Sep 16, 2024

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

No branches or pull requests

2 participants