Code Monkey home page Code Monkey logo

floatsidebar.js's People

Contributors

dependabot[bot] avatar vursen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

floatsidebar.js's Issues

Uncaught TypeError

Just to thank you for your wonderful script. It helped me a lot. I'm getting a Uncaught TypeError in dev console at line: 396 ( var $sideInner = options.sidebarInner || $sideOuter.firstElementChild; )

When I hover over the error it says: Uncaught TypeError: Cannot read property 'firstElementChild' of null.

Although your script works as expected.

Any thoughts?

Thanks

pathHeight problem

Hi,
first thanks for this great float sidebar plugin, its very easy to implement and works great.

But, I'm having a little trouble with
var sideOuterHeight = Math.max(dim$sideInner.height, pathHeight);

It sets height of my sidebar everytime I scroll and it gets bigger and bigger so I can't scroll to bottom of the page.

So I decided to use only dim$sideInner.height and it works fine.

Am I doing something wrong or why should I want to use pathHeight?
Thanks :)

当窗口不够宽时,上下滑动会导致侧边栏抖动

如果窗口不够宽,窗口底部会出现横向滚动条,此时将窗口底部的横向滚动条滑动到中间,然后上下滑动页面,右侧边栏会抖动。

If the window is not wide enough, a horizontal scroll bar will appear at the bottom of the window. At this time, slide the horizontal scroll bar at the bottom of the window to the middle, then slide the page up and down, and the right sidebar will shake.

Need to set an offset while there is a fixed header on the page

Thanks for the nice extension. Adding an offset option to start the scroll triggering from that offset position would be a great addition. Currently, it works with window as the viewport; if we could add an offset to move down the scroll target position, it could be implemented easily with a fixed header.

Thanks

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.