Comments (5)
Hey, glad you like tocbot, thanks for the praise!
And thanks for your thorough example / explanation of the problem. Lol, this is very weird and at first I saw this and thought oh well you can't do overflow-y hidden on the root elements. But then I noticed you had overflow-x: hidden
which seems like it should be fine because it keeps the main root element scrollable (y-axis) which is needed for the native browser handling of hash urls to work (which tocbot works with / uses too). Anyway, suffice to say I think if you can just change html, body { overflow-x:hidden }
to body { overflow-x:hidden }
that should work. Let me know if it does / doesn't work for you. This is a very weird issue and also weird that it happens in firefox too. Anyway, hope that fix works!
from tocbot.
from tocbot.
change
html, body { overflow-x:hidden }
tobody { overflow-x:hidden }
that should work
This did indeed work! Thanks! I'm not sure I fully understand why it does, though. Are you able to share why that works?
Thank you so much @tscanlin!
from tocbot.
Hey, did this help resolve the issue?
from tocbot.
Glad that worked!
I'm not really sure why exactly it works, but seems to be a weird browser issue, see here for more workarounds:
https://stackoverflow.com/questions/47095596/body-overflow-x-hidden-breaks-position-sticky
also this has more info:
https://stackoverflow.com/a/44929597/1655810
from tocbot.
Related Issues (20)
- How to use for WordPress? HOT 1
- TOC in `.xhtml` has no hierarchal structure (bookmark is flatten). HOT 1
- Is it possible to pass a function to format the links? HOT 1
- How can I let the Headings of tocbot indent to its corresponding position? HOT 4
- A problem occurred while using typescript HOT 9
- Navigation don't scroll to position with cyrillic characters ids HOT 6
- Regarding the description of the options, it is recommended to update HOT 15
- Help with large HTML, strange TocBot behaviour HOT 11
- Unusual issue with .is-active-link when there are multiple tocbots on a page HOT 1
- Overscroll support HOT 3
- the icon should stay original position when toc unfold HOT 6
- can't work on hexo-theme-landscape HOT 6
- tocbot 4.18.2 is not detecting h3 HOT 3
- How to scroll the page to a title of an article and highlight a title in the directory HOT 1
- skipRendering true throws exception HOT 2
- Using `headingObjectCallback` doesn't modify ID with `createLink`? HOT 3
- hasInnerContainers: false is not working for relative and abosulte container HOT 3
- Can add support collapsed / collapsible callback ? HOT 1
- Feature: Transform to dropdown on mobile HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tocbot.