GithubHelp home page GithubHelp logo

Comments (4)

schleir avatar schleir commented on June 10, 2024

Ok, Somehow this issue seems to be present only in the windows version of Chrome, I dont have this issue in Ubuntu Chrome 32/Mobile version of Chrome.

from maphilight.

guilherme-vahldick avatar guilherme-vahldick commented on June 10, 2024

Same problem here (Windows 7 Pro / Chrome 32.0.1700.102 m), solved by removing the line 131 to 133, seems to be a problem with the fade animation.

from maphilight.

crbarahona avatar crbarahona commented on June 10, 2024

I saw this a few weeks ago in the Chrome aura channel (not sure how I got into that). Now that 32 is pushed out in the stable channel, the same issue is on both my Windows and PC machines.
I do know that 32+ made some changes to rendering the canvas using GPU acceleration, which I suspect causes the problem.
Disabling "accelerated 2D canvas" in chrome://flags fixes the issue for me, but that's obviously not a practical solution. I submit that this is likely a problem in chrome, and not in maphilight, but perhaps there's a workaround, or at least patch maphilight to remove the offending fade in, during the meantime?

from maphilight.

crbarahona avatar crbarahona commented on June 10, 2024

Actually, there's a hacky workaround that keeps the fade animation working by checking opacity state before trying the animation. Still, seems like a Chrome issue, so submit a ticket with Google if you can, maybe we can get a change in sometime soon. Until then, at least this is working for me.

if (options.fade && !window.skipAnimateOpacity) {
    $(canvas).css('opacity', 0).animate({ opacity: 1 }, 100);
    if ($(canvas).css('opacity') == 0)
    {
        $(canvas).css('opacity', 1);
        window.skipAnimateOpacity = true;
    }
}

Thanks to Roobin for the workaround. #33 (comment)

from maphilight.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.