]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fire updateActive after calcPoints
authorDaniel Ruf <daniel@daniel-ruf.de>
Mon, 26 Feb 2018 21:05:48 +0000 (22:05 +0100)
committerDaniel Ruf <daniel@daniel-ruf.de>
Mon, 26 Feb 2018 21:05:48 +0000 (22:05 +0100)
js/foundation.magellan.js

index 2fc40b404246cbdc5776463155ac95faf717cbc5..fb09d44505f0d320358bde1545ba7da67859e50c 100644 (file)
@@ -100,11 +100,15 @@ class Magellan extends Plugin {
         e.preventDefault();
         var arrival   = this.getAttribute('href');
         _this.scrollToLoc(arrival);
+        _this.calcPoints();
+        _this._updateActive();
       });
 
     this._deepLinkScroll = function(e) {
       if(_this.options.deepLinking) {
         _this.scrollToLoc(window.location.hash);
+        _this.calcPoints();
+        _this._updateActive();
       }
     };
 
@@ -129,7 +133,7 @@ class Magellan extends Plugin {
 
     SmoothScroll.scrollToLoc(loc, options, function() {
       _this._inTransition = false;
-      _this._updateActive();
+      //_this._updateActive();
     })
   }