vue-draggable-resizable icon indicating copy to clipboard operation
vue-draggable-resizable copied to clipboard

Right-clicking while dragging a component renders it inoperable.

Open koiwa6340 opened this issue 4 years ago • 1 comments

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,
        }
      }
    },

koiwa6340 avatar Jun 01 '21 05:06 koiwa6340

me too

LnksW avatar Oct 28 '21 03:10 LnksW