fix: tranbtn position: absolute

This commit is contained in:
Gabe Yuan
2023-12-11 11:38:47 +08:00
parent e9c557776d
commit 30ebebdd71
2 changed files with 3 additions and 2 deletions

View File

@@ -52,7 +52,8 @@ export default function Slection({ tranboxSetting, transApis }) {
}
!tranboxSetting.hideTranBtn && setShowBtn(true);
setPosition({ x: e.clientX, y: e.clientY });
// setPosition({ x: e.clientX, y: e.clientY });
setPosition({ x: e.pageX, y: e.pageY });
}
window.addEventListener("mouseup", handleMouseup);