MCPcopy Create free account
hub / github.com/processing/p5.js / preventDefault

Method preventDefault

src/dom/p5.Element.js:2050–2052  ·  view source on GitHub ↗
(evt)

Source from the content-addressed store, hash-verified

2048 this._dragDisabled = true;
2049
2050 const preventDefault = function (evt) {
2051 evt.preventDefault();
2052 };
2053
2054 // If you want to be able to drop you've got to turn off
2055 // a lot of default behavior.

Callers 6

rFunction · 0.80
modernizr.jsFile · 0.80
dropMethod · 0.80
environmentFunction · 0.80
pointerFunction · 0.80
keyboardFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected