diff options
Diffstat (limited to 'src/LivingVillage.Desktop/Interaction.fs')
| -rw-r--r-- | src/LivingVillage.Desktop/Interaction.fs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LivingVillage.Desktop/Interaction.fs b/src/LivingVillage.Desktop/Interaction.fs index 3c011cb..3f04da8 100644 --- a/src/LivingVillage.Desktop/Interaction.fs +++ b/src/LivingVillage.Desktop/Interaction.fs @@ -188,7 +188,7 @@ module FloatingPrompt = let margin = 8 let screenX = int anchorWorldX - int cameraX - width / 2 let screenY = int anchorWorldY - int cameraY - 56 - let x = + let x = if width + margin * 2 > viewportWidth then margin else max margin (min (viewportWidth - margin - width) screenX) let topSafe = if x + width >= viewportWidth - hudTopRightWidth then hudTopRightHeight + margin else margin |
