Cancel clicks if copy is active (#1300)

This commit is contained in:
Tim Wilkinson 2024-08-17 14:48:55 -07:00 committed by GitHub
parent 6fca9a176d
commit 556cef4d78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -85,6 +85,11 @@
} }
} }
}); });
document.body.addEventListener("click", e => {
if (!document.getSelection().isCollapsed) {
e.stopPropagation();
}
}, true);
})(); })();
</script> </script>
{% } %} {% } %}