fix: handle mouseup (#400)

This commit is contained in:
Gabe
2025-11-22 17:24:02 +08:00
parent fa6f68fec3
commit f8f7d5955f

View File

@@ -133,7 +133,7 @@ export default function Slection({
useEffect(() => { useEffect(() => {
async function handleMouseup(e) { async function handleMouseup(e) {
e.stopPropagation(); // e.stopPropagation();
await sleep(200); await sleep(200);
const selection = window.getSelection(); const selection = window.getSelection();