floating item: properly clear if dragged into void

This commit is contained in:
Bixilon 2023-07-01 15:19:53 +02:00
parent 1ef3dc952f
commit 33978850f8
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -55,6 +55,7 @@ class FloatingItem(
}
if (target == null) {
container?.actions?.invoke(SimpleContainerAction(null, if (button == MouseButtons.LEFT) SimpleContainerAction.ContainerCounts.ALL else SimpleContainerAction.ContainerCounts.PART))
guiRenderer.dragged.element = null
return
}
}