MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / dragOver

Function dragOver

assets/js/DragNDrop.js:33–37  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

31}
32
33function dragOver(event) {
34 if (!event.target.classList.contains("dropped")) {
35 event.preventDefault(); // Prevent default to allow drop
36 }
37}
38
39function dragLeave(event) {
40 if (!event.target.classList.contains("dropped")) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected