参考 draggable()

draggable()

Makes the element draggable.

The parameter, elmnt, is optional. If another p5.Element object is passed, as in myElement.draggable(otherElement), the other element will become draggable.

示例

语法

draggable([elmnt])

参数

elmnt
p5.Element:

another p5.Element.

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

相关参考