Keep move and scroll remainder

This commit is contained in:
Unrud 2022-02-21 22:30:19 +01:00
parent 51dbecaa63
commit b3db523db1

View file

@ -201,12 +201,6 @@ function handleStart(evt) {
ongoingTouches[idx] = touch; ongoingTouches[idx] = touch;
} }
touchLastEnd = 0; touchLastEnd = 0;
if (!dragging) {
moveXSum = Math.trunc(moveXSum);
moveYSum = Math.trunc(moveYSum);
}
scrollXSum = Math.trunc(scrollXSum);
scrollYSum = Math.trunc(scrollYSum);
if (draggingTimeout != null) { if (draggingTimeout != null) {
clearTimeout(draggingTimeout); clearTimeout(draggingTimeout);
draggingTimeout = null; draggingTimeout = null;