[Vuejs]-Mouseup after Draging without library

0👍

As far as I know you can try something like

<span id="handle" class="card-handle" ondragend="myFunction(event)" draggable="true"></span>

and in your methods

methods: {
   myFunction() {
    var x = e.clientX;
    var y = e.clientY;
    var coor = "Coordinates: (" + x + "," + y + ")";
    console.log(cor);
  }
}

Leave a comment