Browse Source

Fix multiselect mousemove with activated selection

master
Eduard Kuzmenko 4 years ago
parent
commit
874b45cafa
  1. 3
      src/components/chat/selection.ts

3
src/components/chat/selection.ts

@ -90,7 +90,8 @@ export default class ChatSelection { @@ -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;

Loading…
Cancel
Save