Skip to content

[BUG]: When the mouse wheel function is used on the web side, the mouse position changes #1008

Open
@joingen

Description

@joingen

Package version

3.1.0-exp.8

Environment

* OS:Windows11
* Unity version:Unity 2021.3.11f
* Graphics API:DirectX11
* Browser:Edge

Steps To Reproduce

Turn on cloud rendering and set a UI that displays the mouse position. Lift the mouse in the Web segment [to prevent mouse movement] Moving the middle button of the mouse will find that the mouse position is shifted

Current Behavior

No response

Expected Behavior

No response

Anything else?

No response

Activity

GISnick

GISnick commented on Dec 26, 2024

@GISnick

This is a fairly important bug that has been around a while.

I am noticing it seems to only flip the Y in the browser. and that flipped value will remain until the mouse is moved again.

example:

  void Update()
    {
        if (Mouse.current != null)
        {
            print(Mouse.current.position.ReadValue().y);
        }
    }

bottom of screen = 0
top of screen = screen height.

use scroll wheel without moving mouse

(flipped y values)
bottom of screen = screen height.
top of screen = 0

  • move mouse again...mouse goes back to normal values.
  • X always stays correct

I wrote a method to track and flip the Y when its "dirty" from the scroll wheel and not yet moved. but if you move the mouse and scroll at the same time quickly it still gets wacky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @karasusan@GISnick@joingen

      Issue actions

        [BUG]: When the mouse wheel function is used on the web side, the mouse position changes · Issue #1008 · Unity-Technologies/UnityRenderStreaming