From: Daniel Ruf Date: Mon, 26 Feb 2018 21:05:48 +0000 (+0100) Subject: fire updateActive after calcPoints X-Git-Tag: v6.6.0~3^2~283^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9731ba470;p=thirdparty%2Ffoundation%2Ffoundation-sites.git fire updateActive after calcPoints --- diff --git a/js/foundation.magellan.js b/js/foundation.magellan.js index 2fc40b404..fb09d4450 100644 --- a/js/foundation.magellan.js +++ b/js/foundation.magellan.js @@ -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(); }) }