Skip to content

Commit

Permalink
Apply formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
eoghanmurray authored and github-actions[bot] committed Apr 5, 2023
1 parent 3a6de4b commit be85644
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/rrweb/src/record/observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit be85644

Please sign in to comment.