vue-draggable-resizable
vue-draggable-resizable copied to clipboard
Right-clicking while dragging a component renders it inoperable.
Hi. Thank you for your library. But there are times when I am in trouble.
If you right-click while dragging a component, the component will stop and you will not be able to move it. Such an event has been reported in past issues, and I have installed the latest version (2.3.0) of the library according to answer # 216, but the same event has occurred.
Here is part of my code. Thank you.
[Similar events in the past] https://github.com/mauricius/vue-draggable-resizable/issues/210 https://github.com/mauricius/vue-draggable-resizable/issues/216
onDrag(x, y) {
//Here, the onDrag argument (x, y) becomes NaN, and the component cannot be moved.
if (isNaN(x)) {
return
} else {
this.x = x
this.y = y
this.coordinate = {
x: x / this.currentRatio,
y: y / this.currentRatio,
}
}
},
me too