lib/assets/javascripts/unpoly/motion.coffee.erb in unpoly-rails-0.60.0 vs lib/assets/javascripts/unpoly/motion.coffee.erb in unpoly-rails-0.60.1
- old
+ new
@@ -370,10 +370,10 @@
beforeStart()
scrollNew = ->
# Don't animate the scrolling.
- scrollOptions = u.merge(options, behavior: 'instant')
+ scrollOptions = u.merge(options, scrollBehavior: 'auto')
# Scroll newElement into position before we start the enter animation.
up.viewport.scrollAfterInsertFragment(newElement, scrollOptions)
if willMorph
if motionController.isActive(oldElement) && options.trackMotion is false