This commit is contained in:
Gabe Yuan
2023-10-25 11:20:05 +08:00
parent 83911b2164
commit 43f34fe6ed
2 changed files with 3 additions and 3 deletions

View File

@@ -9,10 +9,10 @@ export default function Slection({ tranboxSetting, transApis }) {
const [selectedText, setSelText] = useState("");
const [text, setText] = useState("");
const [position, setPosition] = useState({ x: 0, y: 0 });
const [boxSize, setBoxSize] = useState({ w: 600, h: 420 });
const [boxSize, setBoxSize] = useState({ w: 600, h: 400 });
const [boxPosition, setBoxPosition] = useState({
x: (window.innerWidth - 600) / 2,
y: (window.innerHeight - 420) / 2,
y: (window.innerHeight - 400) / 2,
});
function handleMouseup(e) {