Search Issue Tracker

Fixed in 2020.1

Fixed in 2018.4, 2019.2, 2019.3

Votes

0

Found in

2018.4

2018.4.8f1

2019.2

2019.3

2020.1

Issue ID

1190839

Regression

No

[WebGL] Mouse input is blocked after a few moves when using Edge browser

WebGL

-

How to reproduce:
1. Open attached project ("MouseTestWebGL.zip")
2. Open Build Settings window (File->Build Settings...)
3. Select platform to WebGL
4. Click Build And Run
5. From opened browser window copy page URL and paste it to Edge browser
6. Try to move the ball around

Expected result: Mouse moves only the ball
Actual result: Mouse moves the whole player window

Reproducible with: 2018.4.11f1, 2019.2.10f1, 2019.3.b7, 2020.1.0a9

  1. Response avatar

    Resolution Note (fix version 2020.1):

    Fixed with 2020.1.0a16, backported to 2019.3.0f5, 2019.2.19f1, 2018.4.16f1

Comments (10)

  1. 57851c0eed461443c4b34a2cb87a2d0a?d=mm

    litacopeland7

    May 25, 2020 12:10

    I am so happy to see this kind of brilliant informative post because all the details are very awesome and very interesting. https://www.27goodthings.com/

  2. Dfbfdea06474f261bc72edd2a26bd56a?d=mm

    YobeeUnityAds

    May 15, 2020 01:08

    In the latest Apple Store algorithm, Apple gives bigger weight to social factors in app ranking rules. Moreover, a report shows that reviews are the most significant factors when users search on the app store. This means that if you get more positive reviews, Buy IOS App Reviews and the ranking of your app will greatly be improved. The most popular app is the most reviewed app.
    That is why app reviews become more and more important. Buy App Reviews is the best way to improve the rank and you can choose to Buy IOS Reviews for google play reviews.

    https://appleaso.com
    https://buyappreviews.net
    https://buyiosreviews.com

  3. 57851c0eed461443c4b34a2cb87a2d0a?d=mm

    litacopeland7

    May 01, 2020 17:39

    I am so happy to see this kind of brilliant informative post because all the details are very awesome and very interesting. https://www.couponstechie.com/promo-codes/zeigga-lab

  4. E44041f56ce1d8799c94b825bf6f2d9f?d=mm

    tom_unity105

    Apr 28, 2020 05:13

    Shoesformen.com is a professional E-commerce platform focused on men shoes,we sale the most Cost-effective and various styles for men shoes,we sale quality men dress shoes mostly and you can find the best men shoes for you.
    [url=https://www.shoesformen.com]Shoes For Men[/url] the website which focus on men's fashion and give the best price of shoes.Men's fashion,our passion.

  5. E44041f56ce1d8799c94b825bf6f2d9f?d=mm

    tom_unity105

    Apr 28, 2020 05:12

    Shoesformen.com is a professional E-commerce platform focused on men shoes,we sale the most Cost-effective and various styles for men shoes,we sale quality men dress shoes mostly and you can find the best men shoes for you.
    <a href="https://www.shoesformen.com">Shoes For Men</a> the website which focus on men's fashion and give the best price of shoes.Men's fashion,our passion.

  6. A26cd83c38a05cb3d6595f2e7ce3c414?d=mm

    mathilde2019lacombe

    Mar 31, 2020 14:54

    The article you shared here is great. I don't know what to really say what you share very well and useful to the community, I think it makes our community much more developed.
    Découvrez notre sélection de Fauteuil Gamer: https://boutiqueaz.com/tech/comparatif-hi-tech/comparatif-chaise-gamer/

  7. 80b16e82c0787944931aac625f9ca18f?d=mm

    affilate20122012

    Mar 29, 2020 16:05

    This is such a great resource that you are providing and you give it away for free.
    https://ua.casino/

  8. 80b16e82c0787944931aac625f9ca18f?d=mm

    affilate20122012

    Mar 29, 2020 16:05

    This is such a great resource that you are providing and you give it away for free. https://slotclubcasino.com/playfree.html

  9. 7cc0501dcfb253637f5643d25fb24cef?d=mm

    jukka_j

    Oct 17, 2019 14:06

    To work around the issue, navigate to

    C:\Program Files\Unity\Hub\Editor\2019.3.0b7\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\

    and edit UnityLoader.js and find "instantiate:" function with lines

    var Module = gameInstance.Module;
    Module.canvas = document.createElement("canvas");

    after those two lines, put in

    // Disable Microsoft Edge (Chromium-based, tested on 44.17763.771.0) from dragging the whole canvas as an image object when one drags with a mouse over the canvas
    Module.canvas.ondragstart = function(e) { e.preventDefault(); };

    That will remove Edge from attempting to start an image drag on the canvas.

    Another workaround, slightly hacky, but self-contained to user template, is to edit the main html file, find

    <script>
    var gameInstance = UnityLoader.instantiate("gameContainer", "Build/game.json", {onProgress: UnityProgress});
    </script>

    and change it to

    <script>
    var gameInstance = UnityLoader.instantiate("gameContainer", "Build/game.json", {onProgress: UnityProgress});
    function disableEdgeCanvasDrag() {
    var canvas = document.querySelector('canvas');
    if (!canvas) return setTimeout(disableEdgeCanvasDrag, 1000);
    canvas.ondragstart = function(e) { e.preventDefault(); };
    }
    disableEdgeCanvasDrag();
    </script>

  10. 26132c9b0685582a6e4e1967ef73c1bb?d=mm

    Johny90

    Oct 15, 2019 01:57

    This is such a great resource that you are providing and you give it away for free. <a href="https://bubble-shooter.co">bubble shooter</a>

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.