Replies: 1 comment
-
Let's figure it out: in order to drag the screen, the area (which contains the nodes) receives a It can be disabled by assigning the document.addEventListener('keydown', (e) => {
if (e.code === 'Space') {
editor.view.area.el.classList.add('lock-pointer-events')
}
})
document.addEventListener('keyup', (e) => {
if (e.code === 'Space') {
editor.view.area.el.classList.remove('lock-pointer-events')
}
}) where .lock-pointer-events * {
pointer-events: none;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to hold space and drag the screen even if your mouse is over a node?
Beta Was this translation helpful? Give feedback.
All reactions