As I work on developing a custom drag and drop module for Vue, I encountered an issue. In order to override the default browser Drag and Drop behavior, I have implemented logic to clone the div element that needs to be dragged on pointer down event. Subsequently, I update the X and Y coordinates of the cloned div on the pointermove event and finally transfer the value of this div to the drop location upon the pointer up event. To ensure that the pointer up event targets the element beneath the cloned (dragged) div, I utilized the CSS property pointer-events: none on the cloned div. This approach works seamlessly on desktop browsers. However, when testing on mobile devices, the event targeting consistently identifies the dragged element.
Here is the console.log output from the triggered events: logged events