fix: display add menu at correct position
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 1m58s
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 1m58s
This commit is contained in:
@@ -405,12 +405,12 @@
|
||||
if (typeof graphState.activeSocket.index === "number") {
|
||||
graphState.addMenuPosition = [
|
||||
graphState.mousePosition[0],
|
||||
graphState.mousePosition[1] - 3,
|
||||
graphState.mousePosition[1] - 25 / graphState.cameraPosition[2],
|
||||
];
|
||||
} else {
|
||||
graphState.addMenuPosition = [
|
||||
graphState.mousePosition[0] - 20,
|
||||
graphState.mousePosition[1] - 3,
|
||||
graphState.mousePosition[0] - 155 / graphState.cameraPosition[2],
|
||||
graphState.mousePosition[1] - 25 / graphState.cameraPosition[2],
|
||||
];
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user