Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Best would be using some jquery library for this: http://demos.flesler.com/jquery/scrollTo/
Comment | File | Size | Author |
---|---|---|---|
#5 | ajax_comment-2315677-fix_the_scrolling_to_new_post.patch | 829 bytes | formatC'vt |
Comments
Comment #1
formatC'vt CreditAttribution: formatC'vt commentedwhat's wrong with jquery.animate?
Comment #2
muschpusch CreditAttribution: muschpusch commentedNothing but it's pretty light weight and will correct margins etc for us + jumping to selectors will be easy.
https://github.com/flesler/jquery.scrollTo/blob/master/jquery.scrollTo.js
The scrolling is broken at the moment. If you wanna give it a try without any external dependencies please go ahead :)
Comment #3
formatC'vt CreditAttribution: formatC'vt commentedok, i will do it (today or tomorrow)
Comment #4
muschpusch CreditAttribution: muschpusch commentednice!
Comment #5
formatC'vt CreditAttribution: formatC'vt commentedi work too hard and finally fix this strangest "javascript" bug, look at the patch =)
Comment #6
muschpusch CreditAttribution: muschpusch commentedThanks I will try it tomorrow! It indeed looks complicated ;)
Comment #8
muschpusch CreditAttribution: muschpusch commentedThanks! Works great! Committed to dev