From 1f32c7714b266fd17e3308266310d7d9522cd752 Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Mon, 26 Sep 2016 23:07:09 +0200 Subject: [PATCH] scroll 1 pixel ahead --- app/assets/javascripts/parallax.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/parallax.coffee b/app/assets/javascripts/parallax.coffee index 44b2e3f..8ece624 100644 --- a/app/assets/javascripts/parallax.coffee +++ b/app/assets/javascripts/parallax.coffee @@ -12,7 +12,7 @@ App.init = -> $target = $(this.hash) if $target.length $(this).click -> - $('html, body').animate({scrollTop: $target.offset().top}, 1000) + $('html, body').animate({scrollTop: $target.offset().top+1}, 1000) return false App.scroll = ->