Do not copy monospace text by right click

This commit is contained in:
Eduard Kuzmenko 2022-04-21 19:05:48 +03:00
parent e96908c9dd
commit 0d1becb56b

View File

@ -636,6 +636,8 @@ export default class ChatBubbles {
// this.listenerSetter.add(this.bubblesContainer)('click', this.onBubblesClick/* , {capture: true, passive: false} */);
this.listenerSetter.add(this.scrollable.container)('mousedown', (e) => {
if(e.button !== 0) return;
const code: HTMLElement = findUpTag(e.target, 'CODE');
if(code) {
cancelEvent(e);