From e88f4de3a89f0e64c632a019cacd59c1f1a8eb16 Mon Sep 17 00:00:00 2001 From: sylenien Date: Tue, 20 Sep 2022 17:20:11 +0200 Subject: [PATCH] fix(tracker): fix mice pointer events --- tracker/tracker-assist/src/Mouse.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tracker/tracker-assist/src/Mouse.ts b/tracker/tracker-assist/src/Mouse.ts index 35f1b1dde..c0bf86f12 100644 --- a/tracker/tracker-assist/src/Mouse.ts +++ b/tracker/tracker-assist/src/Mouse.ts @@ -31,6 +31,7 @@ export default class Mouse { Object.assign(this.mouse.style, { position: 'absolute', zIndex: '999998', + pointerEvents: 'none', }) } @@ -47,10 +48,8 @@ export default class Mouse { this.position = pos Object.assign(this.mouse.style, { - // we're moving it off by few pixels - // so the doc.elementFromPoint works - left: `${(pos[0] || 0) + 3}px`, - top: `${(pos[1] || 0) + 3}px`, + left: `${pos[0] || 0}px`, + top: `${pos[1] || 0}px`, }) }