Remove cursor modify on floating panel click
parent
96a5e128d7
commit
26e119421d
|
@ -30,14 +30,10 @@
|
||||||
x = e.clientX
|
x = e.clientX
|
||||||
y = e.clientY
|
y = e.clientY
|
||||||
node.style.cursor = 'grabbing'
|
node.style.cursor = 'grabbing'
|
||||||
document.body.style.cursor = 'grabbing'
|
|
||||||
document.body.style.userSelect = 'none'
|
|
||||||
}
|
}
|
||||||
function stop(e: MouseEvent) {
|
function stop(e: MouseEvent) {
|
||||||
dragging = false
|
dragging = false
|
||||||
node.style.cursor = 'auto'
|
node.style.cursor = 'auto'
|
||||||
document.body.style.cursor = 'auto'
|
|
||||||
document.body.style.userSelect = 'auto'
|
|
||||||
}
|
}
|
||||||
function move(e: MouseEvent) {
|
function move(e: MouseEvent) {
|
||||||
if (!dragging) return
|
if (!dragging) return
|
||||||
|
|
Loading…
Reference in New Issue