MCPcopy Index your code
hub / github.com/processing/p5.js / mouseReleased

Method mouseReleased

src/dom/p5.Element.js:1580–1583  ·  view source on GitHub ↗

* Calls a function when the mouse is released over the element. * * Calling `myElement.mouseReleased(false)` disables the function. * * Note: Some mobile browsers may also trigger this event when the element * receives a quick tap. * * @param {Function|Boolean} fxn function to

(fxn)

Source from the content-addressed store, hash-verified

1578 * }
1579 */
1580 mouseReleased(fxn) {
1581 Element._adjustListener('pointerup', fxn, this);
1582 return this;
1583 }
1584
1585 /**
1586 * Calls a function when the mouse is pressed and released over the element.

Callers 2

p5.Element.jsFile · 0.80
pointerFunction · 0.80

Calls 1

_adjustListenerMethod · 0.80

Tested by

no test coverage detected