mirror of https://github.com/aredn/aredn.git
Cancel clicks if copy is active (#1300)
This commit is contained in:
parent
6fca9a176d
commit
556cef4d78
|
@ -85,6 +85,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
document.body.addEventListener("click", e => {
|
||||||
|
if (!document.getSelection().isCollapsed) {
|
||||||
|
e.stopPropagation();
|
||||||
|
}
|
||||||
|
}, true);
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
{% } %}
|
{% } %}
|
||||||
|
|
Loading…
Reference in New Issue