Search Unity

Incorrect mouse position in fullscreen mode when page is zoomed

Discussion in 'Web' started by Griverok, Apr 19, 2021.

  1. Griverok

    Griverok

    Joined:
    May 21, 2019
    Posts:
    1
    Hello, I can not find the solution, my canvas scaler is set to Scale With Screen Size.
    In WebGL build (desktop chrome browser) when page is zoomed by user and unity goes to fullscreen, mouse clicks does not hit the buttons, you need to click nearby for the click to work.
    In Canvas Scaler mode Constant Pixel Size all works good, but then there is no point in fullscreen.
    Is there any way to fix this or this is Unity bug ?

    Unity version: 2019.4.18f1