From 9731ba470a1088dd10130cd082a10f88c27458b5 Mon Sep 17 00:00:00 2001 From: Daniel Ruf Date: Mon, 26 Feb 2018 22:05:48 +0100 Subject: [PATCH] fire updateActive after calcPoints --- js/foundation.magellan.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); }) } -- 2.47.2