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
1 changed files with 1 additions and 3 deletions

View File

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