eslint was giving an error here

This commit is contained in:
Eoghan Murray
2023-04-12 15:08:13 +01:00
parent 961abec782
commit 004d29ba70

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;
}