[fix] pointer capture logging when debug flag is off (#2850)

This PR fixes a bug where pointer capture would log when the debug flag
was off.

### Change Type

- [x] `patch` — Bug fix
This commit is contained in:
Steve Ruiz 2024-02-16 10:41:27 +00:00 committed by GitHub
parent ba47cd08cc
commit dd67577fea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,9 +74,9 @@ export function releasePointerCapture(
} else { } else {
console.warn('Release without capture') console.warn('Release without capture')
} }
}
console.warn('releasePointerCapture called on element:', element, event) console.warn('releasePointerCapture called on element:', element, event)
} }
}
/** @public */ /** @public */
export const stopEventPropagation = (e: any) => e.stopPropagation() export const stopEventPropagation = (e: any) => e.stopPropagation()