You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two symptoms of a problem with highlighting:
Highlighting not updated
When scrolling larger pages really fast, sometimes the highlighting is not updated due to events being skipped. This is because for some reason we never get a position within the offset, so the update is skipped entirely (line 622)
javascript
if ((Math.abs($(this).offset().top - winScrollTop) < self.options.highlightOffset))
#### Highlight wrong item after clicking in toc
Sometimes, based on the structure of the page, another item is highlighted in the TOC, because after scrolling tocify consider an item on top within the highlightOffset. However, the item below is closer, so should be highlighted instead of the first item within the highlightOffset.
#### Proposed solution
Instead of the first element within the highlightOffset, use the one closest to the current position. I've made this improvement in a fork and will create a pull request.
The text was updated successfully, but these errors were encountered:
There are two symptoms of a problem with highlighting:
Highlighting not updated
When scrolling larger pages really fast, sometimes the highlighting is not updated due to events being skipped. This is because for some reason we never get a position within the offset, so the update is skipped entirely (line 622)
javascript
if ((Math.abs($(this).offset().top - winScrollTop) < self.options.highlightOffset))
The text was updated successfully, but these errors were encountered: