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

Scrollable and zoomable canvas #12

Closed
orchetect opened this issue Sep 3, 2022 · 5 comments
Closed

Scrollable and zoomable canvas #12

orchetect opened this issue Sep 3, 2022 · 5 comments

Comments

@orchetect
Copy link
Member

orchetect commented Sep 3, 2022

  • Implement ScrollView to allow scrolling of canvas
    • (ideally with scroll offset point as a binding)
  • Implement MagnificationGesture to scale the canvas in response to trackpad pinch to zoom in/out
    • (ideally with scale factor value as a binding)

I have a working proof-of-concept for these with bindings implemented that would need some polish

@wtholliday
Copy link
Member

wtholliday commented Sep 3, 2022

We can't put a Canvas inside as ScrollView, because Canvas renders to a texture which could be too big. Aure and I found this out while working on PianoRoll.

Instead we should apply transformations when rendering and their inverses when processing events

@orchetect
Copy link
Member Author

Related: #1

@wtholliday
Copy link
Member

This is now implemented for iOS, but ran into issues on macOS.

@wtholliday
Copy link
Member

macOS now working :)

@fontno
Copy link

fontno commented Sep 24, 2024

How do you scroll and zoom?

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

3 participants