Skip to content
Permalink
Browse files

Fix: Calculating distance to top fails

The anchor-ids are not part of the page in edit-mode. So we cannot calculate with them.
  • Loading branch information...
TN03 committed May 14, 2019
1 parent 7877588 commit c855ba70f4d7b7699b1a1ec77ae90a08da5437af
Showing with 3 additions and 1 deletion.
  1. +3 −1 examples/onepage.js
@@ -104,7 +104,9 @@ jQuery(function ($) {
if (hash === '#') {
dest = 0;
} else {
dest = $(hash).offset().top - customOffset;
if ($(hash).length > 0) {
dest = $(hash).offset().top - customOffset;
}
}

//Scrollen mit konstanter Geschwindigkeit

0 comments on commit c855ba7

Please sign in to comment.
You can’t perform that action at this time.