diff --git a/README.md b/README.md index 2c4e916..438db96 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ Converts a point on the screen to terminal grid coordinates. ```ts onmousemove = event => { - let { x, y } = terminal.screenToGrid(event.x, event.y); + let { x, y } = terminal.screenToGrid(event.clientX, event.clientY); // x, y are rounded grid coordinates } ``` \ No newline at end of file