From be856443dd66eb9068637858dc75851208b02e2d Mon Sep 17 00:00:00 2001 From: eoghanmurray Date: Wed, 5 Apr 2023 15:51:24 +0000 Subject: [PATCH] Apply formatting changes --- packages/rrweb/src/record/observer.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/rrweb/src/record/observer.ts b/packages/rrweb/src/record/observer.ts index 241c0e5645..2e4ab35976 100644 --- a/packages/rrweb/src/record/observer.ts +++ b/packages/rrweb/src/record/observer.ts @@ -240,13 +240,14 @@ function initMouseInteractionObserver({ let pointerType: PointerTypes | null = null; let e = event; if ('pointerType' in e) { - Object.keys(PointerTypes) - .forEach((pointerKey: keyof typeof PointerKeys) => { + Object.keys(PointerTypes).forEach( + (pointerKey: keyof typeof PointerKeys) => { if ((e as PointerEvent).pointerType === pointerKey.toLowerCase()) { pointerType = PointerTypes[pointerKey]; return; } - }); + }, + ); if (pointerType === PointerTypes.Touch) { if (MouseInteractions[eventKey] === MouseInteractions.MouseDown) { // we are actually listening on 'pointerdown'