Coder Social home page Coder Social logo

Scrollbars flashes about jquery-snowfall HOT 5 CLOSED

loktar00 avatar loktar00 commented on July 18, 2024
Scrollbars flashes

from jquery-snowfall.

Comments (5)

loktar00 avatar loktar00 commented on July 18, 2024

Which browser is this happening in? Overflow hidden would stop the flashing scroll bar however wouldn't be compatible with many sites out there. There is an offset for the flakes

        // This will reduce the horizontal scroll bar from displaying, when the effect is applied to the whole page
        if($(element).get(0).tagName === $(document).get(0).tagName){
            widthOffset = 25;
        }

You can try increasing that to lower the chance of them running offscreen.

from jquery-snowfall.

neugartf avatar neugartf commented on July 18, 2024

I have that bug in Chrome v38.0.2125.111 with the demo page too. (horizontal and vertical)

from jquery-snowfall.

Silarn avatar Silarn commented on July 18, 2024

There is a bug with resizing where the flakes don't always update their boundaries. I have a branch which addresses this by slightly delaying the resetting of the height and width attributes and by allowing the flake positions to 'scale' horizontally if you resize the window.

However, if you enable snow collection I don't think the canvas is currently doing anything to reposition itself.

from jquery-snowfall.

loktar00 avatar loktar00 commented on July 18, 2024

You're right about the canvas elements, the canvas implementation was kind of half assed, I've been half tempted to take it out and just create a separate repo for that.

Not sure if I noticed the fix for the scrollbar in the merge.. hopefully I didn't overwrite it with any of my changes.

from jquery-snowfall.

loktar00 avatar loktar00 commented on July 18, 2024

I haven't noticed the scroll bars since @Silarn code was merged going to close this for now.

from jquery-snowfall.

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.