Commit a0de4250 authored by Ariel Fuggini's avatar Ariel Fuggini Committed by JC Brand

Prevent selecting text in background when resizing chat box

parent fa305639
......@@ -256,6 +256,7 @@ converse.plugins.add('converse-dragresize', {
if (!api.settings.get('allow_dragresize')) {
return true;
}
ev.preventDefault();
// Record element attributes for mouseMove().
const flyout = this.el.querySelector('.box-flyout'),
style = window.getComputedStyle(flyout);
......@@ -279,6 +280,7 @@ converse.plugins.add('converse-dragresize', {
if (!api.settings.get('allow_dragresize')) {
return true;
}
ev.preventDefault();
const flyout = this.el.querySelector('.box-flyout'),
style = window.getComputedStyle(flyout);
this.width = parseInt(style.width.replace(/px$/, ''), 10);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment