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

Method mouseOver

src/dom/p5.Element.js:1694–1697  ·  view source on GitHub ↗

* Calls a function when the mouse moves onto the element. * * Calling `myElement.mouseOver(false)` disables the function. * * @param {Function|Boolean} fxn function to call when the mouse * moves onto the element. * `fa

(fxn)

Source from the content-addressed store, hash-verified

1692 * }
1693 */
1694 mouseOver(fxn) {
1695 Element._adjustListener('pointerover', fxn, this);
1696 return this;
1697 }
1698
1699 /**
1700 * Calls a function when the mouse moves off the element.

Callers 2

setupFunction · 0.80
p5.Element.jsFile · 0.80

Calls 1

_adjustListenerMethod · 0.80

Tested by

no test coverage detected