From 6f05a9b75600946063ba8e383589596233dfe9e5 Mon Sep 17 00:00:00 2001 From: David Sheldrick Date: Tue, 16 Apr 2024 11:19:54 +0100 Subject: [PATCH] [fix] use page point for pointer (#3476) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #3475 ### Change Type - [x] `sdk` — Changes the tldraw SDK - [x] `bugfix` — Bug fix --- packages/editor/src/lib/editor/Editor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor/src/lib/editor/Editor.ts b/packages/editor/src/lib/editor/Editor.ts index 54ba3c210..7c9fb9655 100644 --- a/packages/editor/src/lib/editor/Editor.ts +++ b/packages/editor/src/lib/editor/Editor.ts @@ -8231,8 +8231,8 @@ export class Editor extends EventEmitter { { id: TLPOINTER_ID, typeName: 'pointer', - x: sx, - y: sy, + x: currentPagePoint.x, + y: currentPagePoint.y, lastActivityTimestamp: // If our pointer moved only because we're following some other user, then don't // update our last activity timestamp; otherwise, update it to the current timestamp.