From 3e0929ab41dfe295788d96ef0b64113721a55b55 Mon Sep 17 00:00:00 2001 From: ivanmviveros Date: Mon, 13 Aug 2018 14:52:47 -0500 Subject: [PATCH] fix allowPageScroll does not scroll to the bottom The allowPageScroll option did not work correctly because percentScroll could exceed the value of 1 and would never be equal to ~~ percentScroll, limiting the value to 1 when validating the problem is corrected. --- jquery.slimscroll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.slimscroll.js b/jquery.slimscroll.js index 90caed3..d510e9b 100644 --- a/jquery.slimscroll.js +++ b/jquery.slimscroll.js @@ -417,7 +417,7 @@ clearTimeout(queueHide); // when bar reached top or bottom - if (percentScroll == ~~percentScroll) + if ((percentScroll > 1 ? 1 : percentScroll) == ~~percentScroll) { //release wheel releaseScroll = o.allowPageScroll;