Fix multiselect mousemove with activated selection

This commit is contained in:
Eduard Kuzmenko 2020-11-26 13:53:28 +02:00
parent 89d05c5795
commit 874b45cafa

View File

@ -90,7 +90,8 @@ export default class ChatSelection {
const mid = +bubble.dataset.mid;
if(!mid) return;
if(e.target != bubble && selecting === undefined) {
// * cancel selecting if selecting message text
if(e.target != bubble && selecting === undefined && !this.selectedMids.size) {
bubblesContainer.removeEventListener('mousemove', onMouseMove);
document.removeEventListener('mouseup', onMouseUp);
return;