]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fixes #7990
authorChris Oyler <christopher.oyler@gmail.com>
Mon, 25 Jan 2016 18:36:29 +0000 (10:36 -0800)
committerChris Oyler <christopher.oyler@gmail.com>
Mon, 25 Jan 2016 18:36:29 +0000 (10:36 -0800)
js/foundation.magellan.js

index f6ba9d7b0e018ea60a1ef48de1d965134533713a..6db58c3749cfb546633629162003301f709caa11 100644 (file)
   Magellan.prototype.scrollToLoc = function(loc){
     var scrollPos = $(loc).offset().top - this.options.threshold / 2 - this.options.barOffset;
 
-    $(document.body).stop(true).animate({
+    $('html, body').stop(true).animate({
         scrollTop: scrollPos
       },
-      {
-        duration: this.options.animationDuration,
-        easiing: this.options.animationEasing
-     });
+        this.options.animationDuration,
+        this.options.animationEasing
+     );
   };
   /**
    * Calls necessary functions to update Magellan upon DOM change