UnityRenderStreaming icon indicating copy to clipboard operation
UnityRenderStreaming copied to clipboard

[BUG]: Mouse input wrong in IPointerMoveHandler

Open sudurov opened this issue 1 year ago • 1 comments

Package version

3.1.0-exp.7

Environment

* OS: Windows 11
* Unity version: 2022.3.28f1
* Graphics API: DirectX11
* Browser: Chrome

Steps To Reproduce

  1. Run project from https://github.com/sudurov/UnityRenderStreamingInputBug
  2. Run WebApp
  3. In Chrome, mouse position doesn't match position in IPointerMoveHandler.OnPointerMove(PointerEventData eventData) image

Current Behavior

Point position doesn't math mouse cursor in web brouser. But if open strean from mobile device, all works just fine.

Expected Behavior

Point position math mouse cursor in web brouser.

Anything else?

No response

sudurov avatar May 09 '24 11:05 sudurov

I forgot to mention a strange thing. After opening the stream in the browser, the mouse position will not match. Then if you open the Unity Editor and click something inside the hierarchy, and then return to the browser, the mouse position will now match the point on the screen.

sudurov avatar May 09 '24 11:05 sudurov