Apply formatting changes

This commit is contained in:
eoghanmurray
2026-04-01 12:00:00 +08:00
committed by github-actions[bot]
parent 11c973efb0
commit 29d0d3a659

View File

@@ -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'