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:
parent
57877fd6db
commit
32dd43e02c
|
@ -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, {
|
||||
|
|
Loading…
Reference in New Issue