Fix Props.onPointerUpdate() arguments

This commit is contained in:
みけCAT 2023-12-06 20:30:01 +09:00 committed by GitHub
parent a04cc707c3
commit db4747506a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,10 +72,10 @@ Here you can try saving the data to your backend or local storage for example.
This callback is triggered when mouse pointer is updated.
```js
({ x, y }, button, pointersMap}) => void;
({pointer, button, pointersMap}) => void;
```
1.`{x, y}`: Pointer coordinates
1.`pointer`: [`CollaboratorPointer`](https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L61) having the pointer coordinates and type.
2.`button`: The position of the button. This will be one of `["down", "up"]`