dragover
event listener:
yourCanvasVariable.addEventListener(`dragover`, dragOver); function dragOver(event) { // the default browser action is to disallow elements from being dragged over // this prevents the default browser action from happening event.preventDefault() }