From ae4b1b62063fbbccf14462d6349a95f711d8b31d Mon Sep 17 00:00:00 2001 From: Martin Boonk Date: Tue, 26 Mar 2024 10:03:02 +0100 Subject: [PATCH] kineticscroll - Do not skip last drag event --- apps/kineticscroll/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/kineticscroll/boot.js b/apps/kineticscroll/boot.js index 6ebb3db6a..7779558fa 100644 --- a/apps/kineticscroll/boot.js +++ b/apps/kineticscroll/boot.js @@ -115,6 +115,7 @@ const dragHandler = e=>{ direction = e.dy > 0 ? 1 : -1; + s.scroll -= e.dy; if (e.b > 0){ // Finger touches the display lastTouchedDrag = Date.now(); @@ -132,7 +133,6 @@ } accDy += e.dy; - s.scroll -= e.dy; } else { // Finger has left the display, only start scrolling kinetically when the last drag event is close enough if (Date.now() - lastTouchedDrag < LAST_DRAG_WAIT){