Automaticaly Pan on drag #573
Answered
by
bcakmakoglu
ericuldall
asked this question in
Q&A
-
Is there a way to automatically pan the canvas area if you were to drag an element outside of the visible bounds? |
Beta Was this translation helpful? Give feedback.
Answered by
bcakmakoglu
Dec 29, 2022
Replies: 1 comment 2 replies
-
This is not a built-in feature atm, no. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ericuldall
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 asdimensions
).