preventDefault();

ondragover = function (event) {
        event.preventDefault();
        console.log("Fire Drag");
    };

can you help me on this
can you tell me how i use preventDefault

@Jack I am not sure in which context you are trying to use preventDefault. Could you offer maybe a look at your project by sharing a link here so others can have a look. Also, I did a quick search of the forum and see this question was asked before. Maybe this link to the forum search will give you some clues.

https://forum.playcanvas.com/search?q=preventDefault

1 Like