Title: Scroll Stops At Wrong Position
Last modified: March 31, 2020

---

# Scroll Stops At Wrong Position

 *  Resolved [ayush56](https://wordpress.org/support/users/ayush56/)
 * (@ayush56)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/scroll-stops-at-wrong-position/)
 * Hello,
    The scroll is stopping in wrong position
 * And The issue is happening with long headings, when I press on some long heading
   from easy table of content it scrolls down and stops in wrong position, you can
   see in this screen shot where it is stopping [https://ibb.co/m6yJxj8](https://ibb.co/m6yJxj8)
 * But it should have stopped here [https://ibb.co/f1C7dPZ](https://ibb.co/f1C7dPZ)
 * This problem was occuring since I updated the plugin to 2.0, previously v1.7.1
   works fine
 * You can visit this demo page [Test Page](http://techno5678.byethost24.com/hello-world/)
   and click on the long heading present in table of content, and you can see that
   it scrolls down and stops in wrong position
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fscroll-stops-at-wrong-position%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Steven](https://wordpress.org/support/users/shazahm1hotmailcom/)
 * (@shazahm1hotmailcom)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/scroll-stops-at-wrong-position/#post-12606497)
 * Old versions wrapped the text in the heading with the link target. Doing this
   often broken theme’s styling of headings due to the way theme authors would decide
   to write the CSS selectors for headings.
 * New versions of ezTOC instead adds the link target to the end of the heading 
   text to prevent breaking theme’s styling of headings.
 * The next update will move the link target to the beginning of the heading text.
   That will fix the issue you demonstrated.
 * If I start getting support related issue report about theme styling again, I’ll
   revert this change and put it back of the end of the heading text. I rather have
   longer headings slightly off target than break theme styling.

Viewing 1 replies (of 1 total)

The topic ‘Scroll Stops At Wrong Position’ is closed to new replies.

 * ![](https://ps.w.org/easy-table-of-contents/assets/icon-256x256.png?rev=3045459)
 * [Easy Table of Contents](https://wordpress.org/plugins/easy-table-of-contents/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-table-of-contents/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-table-of-contents/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-table-of-contents/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-table-of-contents/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-table-of-contents/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Steven](https://wordpress.org/support/users/shazahm1hotmailcom/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/scroll-stops-at-wrong-position/#post-12606497)
 * Status: resolved