handing for altcanvas in alerts

This commit is contained in:
downthecrop 2024-10-24 23:21:55 -07:00
parent 1eb7483d35
commit 838acc57ff
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,7 @@ object Helpers {
// Adjust for parent component location if it exists
if (parentComponent != null) {
if (parentComponent != null && GameShell.canvas.isShowing) {
val parentLocation = parentComponent.locationOnScreen
val x = parentLocation.x
val y = GameShell.canvas.locationOnScreen.y