[orx-camera] Center mouse button sends changed event
This commit is contained in:
@@ -42,7 +42,10 @@ class Camera2D : Extension, ChangeEvents {
|
|||||||
mouse.buttonDown.listen {
|
mouse.buttonDown.listen {
|
||||||
rotationCenter = it.position
|
rotationCenter = it.position
|
||||||
|
|
||||||
if (it.button == MouseButton.CENTER) view = Matrix44.IDENTITY
|
if (it.button == MouseButton.CENTER) {
|
||||||
|
view = Matrix44.IDENTITY
|
||||||
|
dirty = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
mouse.dragged.listen {
|
mouse.dragged.listen {
|
||||||
if (!it.propagationCancelled) {
|
if (!it.propagationCancelled) {
|
||||||
|
|||||||
Reference in New Issue
Block a user