From 60b10ad4b8dbfa18136708d07a44d561b2d2d90d Mon Sep 17 00:00:00 2001 From: Matthieu Tanguay-Carel Date: Tue, 28 Oct 2014 12:40:42 +0100 Subject: [PATCH] fixes bug to prevent double page scroll --- jquery.multiscroll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.multiscroll.js b/jquery.multiscroll.js index 1f506ff..56c6dad 100644 --- a/jquery.multiscroll.js +++ b/jquery.multiscroll.js @@ -174,7 +174,7 @@ var isFirstScrollMove = (typeof lastScrolledDestiny === 'undefined' ); - if (isFirstScrollMove || sectionAnchor !== lastScrolledDestiny){ + if (isFirstScrollMove || sectionAnchor !== lastScrolledDestiny.toString()){ scrollPage(section); } }