mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-09 15:10:17 +00:00
Update README.md
This commit is contained in:
@@ -98,11 +98,19 @@ node.onDrawForeground = function(canvas, ctx)
|
||||
|
||||
You can also grab events from the mouse in case your node has some sort of special interactivity.
|
||||
|
||||
node.onMouseDown = function(e)
|
||||
```js
|
||||
node.onMouseDown = function( event, canvas_pos, graphcanvas )
|
||||
{
|
||||
|
||||
return true; //return true is the event was used by your node, to block other behaviours
|
||||
}
|
||||
```
|
||||
|
||||
Other methods are:
|
||||
- onMouseMove
|
||||
- onMouseUp
|
||||
- onMouseEnter
|
||||
- onMouseLeave
|
||||
- onKey
|
||||
|
||||
## Integration
|
||||
|
||||
|
||||
Reference in New Issue
Block a user