As I work on coding a webpage designed for viewing on an iPad, I have encountered an issue with Safari/Webkit's drag and drop functionality. Despite copying Safari's example code exactly, the drag and drop feature refuses to work as expected.
The Problem: When testing the webpage on Safari Desktop or Safari on an iPad, the ondrop event never seems to trigger. On the iPad specifically, I am unable to drag elements at all; the dragging cursor appears, but nothing happens when I try to move the elements with my finger. However, the drag function works perfectly on a desktop. What could be causing this discrepancy?
You can find a simple code example at the following link: https://developer.apple.com/library/archive/documentation/AppleApplications/Conceptual/SafariJSProgTopics/DragAndDrop.html
<!DOCTYPE html>
<html>
...
</html>
For a demonstration, here is the JSFiddle: (Please note that the drag and drop functionality is Webkit-specific and only compatible with Safari, intended for iPads): https://jsfiddle.net/eyM3y/