Skip to content

Automaticaly Pan on drag #573

Answered by bcakmakoglu
ericuldall asked this question in Q&A
Dec 29, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

This is not a built-in feature atm, no.
You'd have to do this yourself by starting to to change the viewport position (using setViewport) when a node is being dragged towards the edge of the viewport (you can get the dimensions from the store as well, they're saved as dimensions).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ericuldall
Comment options

@bcakmakoglu
Comment options

Answer selected by ericuldall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants