Reference doubleClicked()

doubleClicked()

Calls a function when the mouse is pressed twice over the element.

Calling myElement.doubleClicked(false) disables the function.

Examples

Syntax

doubleClicked(fxn)

Parameters

fxn
Function|Boolean:

function to call when the mouse is double clicked over the element. false disables the function.

Notice any errors or typos? Please let us know. Please feel free to edit src/core/p5.Element.js and open a pull request!

Related References