mirror of
https://github.com/discourse/discourse.git
synced 2025-03-07 19:59:33 +00:00
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 || (() => {});
|
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, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user