[orx-camera] Center mouse button sends changed event

This commit is contained in:
Abe Pazos
2025-04-30 15:16:47 +03:00
parent 1e9ec06543
commit 7fcc96406f

View File

@@ -42,7 +42,10 @@ class Camera2D : Extension, ChangeEvents {
mouse.buttonDown.listen {
rotationCenter = it.position
if (it.button == MouseButton.CENTER) view = Matrix44.IDENTITY
if (it.button == MouseButton.CENTER) {
view = Matrix44.IDENTITY
dirty = true
}
}
mouse.dragged.listen {
if (!it.propagationCancelled) {