The drag API has little contact and only provides ideas: it can be judged based on the distance from the upper left corner of the target when it is dropped
Personal feeling can be judged by the top value of each p. For example, when the "Please select" block is moved, its top value is closest to the one below, and you can basically determine which area it has been dragged to.
The drag API has little contact and only provides ideas: it can be judged based on the distance from the upper left corner of the target when it is dropped
Use positioning to judge the distance relative to the parent element. It is best to use a plug-in for dragging
Personal feeling can be judged by the top value of each p. For example, when the "Please select" block is moved, its top value is closest to the one below, and you can basically determine which area it has been dragged to.
You can take a look at the drag event
There are several events for dragging. Looking at the manual, there seem to be 7 events