How to get mouseup event after native drag event?
问题 The implementation of the WHATWG drag and drop supports dragstart , drag and dragend events. The dragend event fires when the draggable object returns to the original position, e.g. try dragging the red box as far as you can and release it. The dragend (and "END!" console.log message) will not fire until the draggable element returns to the original position (this is most visible in the Safari browser). var handle = document.querySelector('#handle'); handle.addEventListener('dragend',