PointerMoveEvent DeltaPosition Y is negative on positive move in simulator only

So this is a bit of a weird issue and I wanted to ask whether this is intended behaviour (for some weird reason).

When registering callbacks for the PointerMoveEvent and checking the DeltaPosition’s y value like so:

ve.RegisterCallback<PointerMoveEvent>(ModalPointerMoveHandler);

private void ModalPointerMoveHandler(PointerMoveEvent evt)
{
    Debug.Log($"Is Dragged {evt.deltaPosition}");
}

the deltaPosition.y value is negative when running in the simulator view, but positive in normal Gameview.

Is this a bug or intended behaviour somehow and how are we supposed to know which direction is up if it is intended?

Can you file a bug with this? Somebody will investigate this. I don’t see why they would act differently.

It’s definitely not intended. Is the mouse position also wrong? If evt.deltaPosition doesn’t match the variation in the mousePosition, then yes that’s a bug, in which case could you please submit one?

Made a bug report for this issue and a similar bug concerning PointerMoveEvent that only happens in GameView on Linux:

https://fogbugz.unity3d.com/default.asp?1411711 ← First Bug that is described above with repro project attached, bug also happens ON device by the way.
https://fogbugz.unity3d.com/default.asp?1411714 ← Second Bug that is Linux Editor only (duplicated PointerMoveEvents with invalid deltaPosition, so it might be related?)

1 Like