fix: selection button position
This commit is contained in:
@@ -4,12 +4,12 @@ export default function TranBtn({ onClick, position, tranboxSetting }) {
|
|||||||
const left = limitNumber(
|
const left = limitNumber(
|
||||||
position.x + tranboxSetting.btnOffsetX,
|
position.x + tranboxSetting.btnOffsetX,
|
||||||
0,
|
0,
|
||||||
window.innerWidth - 20
|
document.body.scrollWidth - 20
|
||||||
);
|
);
|
||||||
const top = limitNumber(
|
const top = limitNumber(
|
||||||
position.y + tranboxSetting.btnOffsetY,
|
position.y + tranboxSetting.btnOffsetY,
|
||||||
0,
|
0,
|
||||||
window.innerHeight - 20
|
document.body.scrollHeight - 20
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user