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 pointerType: PointerTypes | null = null;
let e = event; let e = event;
if ('pointerType' in e) { if ('pointerType' in e) {
Object.keys(PointerTypes) Object.keys(PointerTypes).forEach(
.forEach((pointerKey: keyof typeof PointerKeys) => { (pointerKey: keyof typeof PointerKeys) => {
if ((e as PointerEvent).pointerType === pointerKey.toLowerCase()) { if ((e as PointerEvent).pointerType === pointerKey.toLowerCase()) {
pointerType = PointerTypes[pointerKey]; pointerType = PointerTypes[pointerKey];
return; return;
} }
}); },
);
if (pointerType === PointerTypes.Touch) { if (pointerType === PointerTypes.Touch) {
if (MouseInteractions[eventKey] === MouseInteractions.MouseDown) { if (MouseInteractions[eventKey] === MouseInteractions.MouseDown) {
// we are actually listening on 'pointerdown' // we are actually listening on 'pointerdown'