Scroll with 2 fingers

This commit is contained in:
Simon Vieille 2018-02-08 12:54:12 +01:00
parent 9f170ee2c1
commit 722b1ea521
No known key found for this signature in database
GPG key ID: 919533E2B946EA10

View file

@ -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;
}