• Resolved jrp1

    (@jrp1)


    First off, thank you for the great plugin and fast support. You’ve done really great work here and I appreciate it.

    I’ve managed to get everything working that I’d like to, including the offset. However the offset does not seem to apply to the “mPS2id-target” class that is applied for highlighting.

    I have a scrolling / fixed menu, and the offset has helped me position it in the correct place. The issue is that the highlighting is still appearing below my menu, as if the offset is not being applied to that at all.

    How can I tweak the JavaScript so it honors the same offset and adds to the total pixel length of the element?

    Hope this makes sense. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author malihu

    (@malihu)

    Hello,

    The offset does not really correlate to section highlighting. Links get highlighted when their respective section’s main part is within user’s viewport.

    If the section’s main part is within the viewport, it’ll get highlighted.

    Does this make sense?

    Thread Starter jrp1

    (@jrp1)

    Ah, I understand. I was thinking it was like the Wikipedia footnotes section (which is actually my intended purpose).

    Example: https://en.wikipedia.org/wiki/Favicon#cite_note-msdn-4

    Thank you, I will mark this as closed ??

    Plugin Author malihu

    (@malihu)

    No problem ??

    The Wikipedia footnotes section works (or should work) the same as “Page scroll to id” (although there’s no offset in Wikipedia page). This said, I can’t really be sure about the issue unless I see your page/site.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Scroll offset working but highlighting offset does not’ is closed to new replies.