Apply formatting changes
This commit is contained in:
committed by
github-actions[bot]
parent
11c973efb0
commit
29d0d3a659
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user