eslint was giving an error here

This commit is contained in:
Eoghan Murray
2026-04-01 12:00:00 +08:00
parent 3c425397fb
commit 84452653bf

View File

@@ -242,9 +242,7 @@ function initMouseInteractionObserver({
if ('pointerType' in event) {
Object.keys(PointerTypes).forEach(
(pointerKey: keyof typeof PointerTypes) => {
if (
(event as PointerEvent).pointerType === pointerKey.toLowerCase()
) {
if (event.pointerType === pointerKey.toLowerCase()) {
pointerType = PointerTypes[pointerKey];
return;
}