From 722b1ea52113212efcddb57bcf4ae286900b2f31 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Thu, 8 Feb 2018 12:54:12 +0100 Subject: [PATCH] Scroll with 2 fingers --- client/assets/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/assets/js/main.js b/client/assets/js/main.js index a7e3307..13c843a 100644 --- a/client/assets/js/main.js +++ b/client/assets/js/main.js @@ -130,7 +130,7 @@ var scrollerTouchMoveHandler = function(e) { var value = ((touch.pageY - mouseInitPosY > 0) ? 'down' : 'up'); var now = new Date().getTime(); - if (value === scrollLastValue && scrollLastTimestamp !== null && now - scrollLastTimestamp < 200) { + if (touch.pageY === mouseInitPosY || value === scrollLastValue && scrollLastTimestamp !== null && now - scrollLastTimestamp < 200) { return; }