REVERT: makes touchstart passive (#22004)

This is causing issues with scroll, I need to find a different issue for the event propagating as a click.
This commit is contained in:
Joffrey JAFFEUX 2023-06-08 15:31:49 +02:00 committed by GitHub
parent 57877fd6db
commit 32dd43e02c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ export default class ChatOnLongPress extends Modifier {
this.onLongPressCancel = onLongPressCancel || (() => {}); this.onLongPressCancel = onLongPressCancel || (() => {});
element.addEventListener("touchstart", this.handleTouchStart, { element.addEventListener("touchstart", this.handleTouchStart, {
passive: false, passive: true,
capture: true, capture: true,
}); });
} }
@ -63,8 +63,6 @@ export default class ChatOnLongPress extends Modifier {
return; return;
} }
cancelEvent(event);
this.onLongPressStart(this.element, event); this.onLongPressStart(this.element, event);
this.element.addEventListener("touchmove", this.onCancel, { this.element.addEventListener("touchmove", this.onCancel, {