Get current zoom level reactive number #1632
Answered
by
bcakmakoglu
gitHoussem
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
bcakmakoglu
Oct 3, 2024
Replies: 1 comment 1 reply
-
Instead of const { viewport } = useVueFlow()
watch(() => viewport.value.zoom, (nextZoom) => {
console.log(nextZoom)
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gitHoussem
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of
getViewport
you can just use