Fix example code in doc
This commit is contained in:
parent
dfd88c6b1e
commit
b10ae71b92
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ const mousePositionD = prism(() => {
|
|||
'setupListeners',
|
||||
() => {
|
||||
const handleMouseMove = (e: MouseEvent) => {
|
||||
setPos([e.screenX, e.screenY])
|
||||
setPos({x: e.screenX, y: e.screenY})
|
||||
}
|
||||
document.addEventListener('mousemove', handleMouseMove)
|
||||
|
||||
|
|
Loading…
Reference in a new issue