Best would be using some jquery library for this: http://demos.flesler.com/jquery/scrollTo/

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

formatC'vt’s picture

what's wrong with jquery.animate?

muschpusch’s picture

Nothing 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 :)

formatC'vt’s picture

Assigned: muschpusch » formatC'vt

ok, i will do it (today or tomorrow)

muschpusch’s picture

nice!

formatC'vt’s picture

Status: Active » Needs review
FileSize
829 bytes

i work too hard and finally fix this strangest "javascript" bug, look at the patch =)

muschpusch’s picture

Thanks I will try it tomorrow! It indeed looks complicated ;)

  • muschpusch committed de8d0a5 on 7.x-1.x authored by formatC'vt
    Issue #2315677 by formatC'vt | muschpusch: Fixed the scrolling to form...
muschpusch’s picture

Status: Needs review » Fixed

Thanks! Works great! Committed to dev

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.