Disable double click reply on mobile devices
This commit is contained in:
parent
94741c70de
commit
d7c6af4b3c
@ -30,7 +30,7 @@ import StickyIntersector from "../stickyIntersector";
|
|||||||
import animationIntersector from "../animationIntersector";
|
import animationIntersector from "../animationIntersector";
|
||||||
import RichTextProcessor from "../../lib/richtextprocessor";
|
import RichTextProcessor from "../../lib/richtextprocessor";
|
||||||
import mediaSizes from "../../helpers/mediaSizes";
|
import mediaSizes from "../../helpers/mediaSizes";
|
||||||
import { isAndroid, isApple, isSafari } from "../../helpers/userAgent";
|
import { isAndroid, isApple, isMobile, isSafari } from "../../helpers/userAgent";
|
||||||
import I18n, { i18n, langPack } from "../../lib/langPack";
|
import I18n, { i18n, langPack } from "../../lib/langPack";
|
||||||
import AvatarElement from "../avatar";
|
import AvatarElement from "../avatar";
|
||||||
import { formatPhoneNumber } from "../misc";
|
import { formatPhoneNumber } from "../misc";
|
||||||
@ -422,6 +422,7 @@ export default class ChatBubbles {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!isMobile) {
|
||||||
this.listenerSetter.add(this.bubblesContainer, 'dblclick', (e) => {
|
this.listenerSetter.add(this.bubblesContainer, 'dblclick', (e) => {
|
||||||
if(this.chat.selection.isSelecting || !this.appMessagesManager.canWriteToPeer(this.peerId, this.chat.threadId)) {
|
if(this.chat.selection.isSelecting || !this.appMessagesManager.canWriteToPeer(this.peerId, this.chat.threadId)) {
|
||||||
return;
|
return;
|
||||||
@ -433,6 +434,7 @@ export default class ChatBubbles {
|
|||||||
this.chat.input.initMessageReply(mid);
|
this.chat.input.initMessageReply(mid);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/* if(false) */this.stickyIntersector = new StickyIntersector(this.scrollable.container, (stuck, target) => {
|
/* if(false) */this.stickyIntersector = new StickyIntersector(this.scrollable.container, (stuck, target) => {
|
||||||
for(const timestamp in this.dateMessages) {
|
for(const timestamp in this.dateMessages) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user