Search Unity

y mouse position is inverted in WebGL with new input system!

Discussion in 'Input System' started by FeastSC2, Dec 9, 2019.

  1. FeastSC2

    FeastSC2

    Joined:
    Sep 30, 2016
    Posts:
    978
    Look at where my mouse has to be in order for it to hover on the button. (the button becomes green when the mouse hovers on it).
    Only the y of the mouse position is inverted, the x is fine.
    Is this a bug or am I misunderstanding something?
    upload_2019-12-9_22-52-5.png


    Keep in mind that in windows builds I encounter no problems.
    This only occurs when the Event System uses the new input system module and that I'm using WebGL.

    Mouse position.y is inverted with this module:
    upload_2019-12-9_22-44-7.png

    Using the standalone system works flawlessly:
    upload_2019-12-9_22-44-52.png
     
    tonialatalo likes this.
  2. FeastSC2

    FeastSC2

    Joined:
    Sep 30, 2016
    Posts:
    978
    No one else has this issue?
     
    Last edited: Dec 16, 2019
    tonialatalo likes this.
  3. Aisjam

    Aisjam

    Joined:
    May 22, 2013
    Posts:
    4
    Hi feastSC2. Im having this issue too.