From db1f536cec6278119727bafe7b8d5f7834df58f7 Mon Sep 17 00:00:00 2001 From: Stacey Van Herk <13419300+svanherk@users.noreply.github.com> Date: Fri, 4 Aug 2023 10:02:12 -0400 Subject: [PATCH] Add some debug logs --- src/browser/reset.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/browser/reset.js b/src/browser/reset.js index 491088ab..1bffaf2c 100644 --- a/src/browser/reset.js +++ b/src/browser/reset.js @@ -14,6 +14,7 @@ let currentLang = undefined, shouldResetMouse = false; export function requestMouseReset() { + console.log('requestMouseReset'); shouldResetMouse = true; } @@ -34,7 +35,10 @@ export async function reset(opts) { if (shouldResetMouse) { shouldResetMouse = false; + console.log('resetting mouse'); + console.time('mouse'); await sendMouse({ type: 'move', position: [0, 0] }).catch(() => {}); + console.timeEnd('mouse'); } if (document.activeElement !== document.body) {