L
L
lavezzi12021-02-11 12:02:55
Vue.js
lavezzi1, 2021-02-11 12:02:55

How to implement drag and drop on mouse events?

Hello everyone, there is a task to implement the movement of objects on a grid (consists of slots). Without using html5 drag&drop. That is, on mouse events (mousedown, mousemove, mouseup). Please tell me how and where to move, on pure js I understand how to write it, but on vue, so that there is no direct manipulation of DOM nodes, there are no ideas. Also, the difficulty is to use position absolute on the wrapped element, it has to be appended to document.body. I ask for your help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VitalyChaikin, 2021-02-11
@VitalyChaikin

See
https://vuejsexamples.com/tag/drag/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question