From 10ada4025b78dc11ee04fb7f0e6d8cb95b6195c0 Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 19 May 2015 22:01:31 +0200 Subject: [PATCH] Scrollify doesn't ignore currentHash anymore --- jquery.scrollify.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.scrollify.js b/jquery.scrollify.js index 4406c4c..96cc3ff 100644 --- a/jquery.scrollify.js +++ b/jquery.scrollify.js @@ -273,9 +273,9 @@ calculatePositions(false); - if(hasLocation===false && settings.sectionName) { + if(hasLocation===false && settings.sectionName && !currentHash) { window.location.hash = names[0]; - } else { + } else if (!currentHash) { animateScroll(index); }