Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Mouse click delays in WebGL build

Discussion in 'WebGL' started by Simon_says, Jul 3, 2015.

  1. Simon_says

    Simon_says

    Joined:
    Oct 19, 2013
    Posts:
    141
    I have just made a new build of my game using 5.1.1p3 since it doesn't work with 5.1.1f1, and when I test the built game the mouse input is acting weird. This is what I use to fetch the input in an Update function: if (Input.GetKeyDown(KeyCode.Mouse0) || Input.GetKeyDown(KeyCode.Space)) and if I use the Space button all works fine, and if I use the mouse button it has delays (which are not fixed or constant).

    Was running on firefox, and no I don't have a bad hardware. I was waiting so long for this new patch to come so I can publish an update of my game, but seems like I'll have to wait for another week.
     
    Last edited: Jul 3, 2015
  2. CanadianCheese

    CanadianCheese

    Joined:
    Mar 10, 2015
    Posts:
    12
    I notice the same thing: Framerates are all fine, but clicking on buttons are much slower, sometimes they never register until I click off and then on the frame again.

    I think this is a new issue to 5.1
     
  3. Simon_says

    Simon_says

    Joined:
    Oct 19, 2013
    Posts:
    141
    I got an answer from the Unity QA that this issue has been fixed now and will be available in the next release.:)
     
  4. CanadianCheese

    CanadianCheese

    Joined:
    Mar 10, 2015
    Posts:
    12
    Fantastic, this is the primary showstopper for me currently, thanks for the update!
     
  5. termovent

    termovent

    Joined:
    Aug 3, 2013
    Posts:
    2
    when is this release comming? anyone knows?

    I'm at 5.1.1f1 and I still experience the problem.
     
  6. Simon_says

    Simon_says

    Joined:
    Oct 19, 2013
    Posts:
    141
  7. CanadianCheese

    CanadianCheese

    Joined:
    Mar 10, 2015
    Posts:
    12
    Verified, fixed my issue.