Do not copy monospace text by right click
This commit is contained in:
parent
e96908c9dd
commit
0d1becb56b
@ -636,6 +636,8 @@ export default class ChatBubbles {
|
|||||||
// this.listenerSetter.add(this.bubblesContainer)('click', this.onBubblesClick/* , {capture: true, passive: false} */);
|
// this.listenerSetter.add(this.bubblesContainer)('click', this.onBubblesClick/* , {capture: true, passive: false} */);
|
||||||
|
|
||||||
this.listenerSetter.add(this.scrollable.container)('mousedown', (e) => {
|
this.listenerSetter.add(this.scrollable.container)('mousedown', (e) => {
|
||||||
|
if(e.button !== 0) return;
|
||||||
|
|
||||||
const code: HTMLElement = findUpTag(e.target, 'CODE');
|
const code: HTMLElement = findUpTag(e.target, 'CODE');
|
||||||
if(code) {
|
if(code) {
|
||||||
cancelEvent(e);
|
cancelEvent(e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user