Combine scroll and scroll finish commands

This commit is contained in:
Unrud 2022-02-21 22:30:18 +01:00
parent 1f3aa58568
commit ad3847f5aa
6 changed files with 19 additions and 32 deletions

View file

@ -203,7 +203,7 @@ function handleStart(evt) {
dragging = true;
}
if (scrolling) {
ws.send("sf");
ws.send("S");
scrolling = false;
}
}
@ -220,7 +220,7 @@ function handleEnd(evt) {
touchReleasedCount += 1;
touchLastEnd = evt.timeStamp;
if (scrolling) {
ws.send("sf");
ws.send("S");
scrolling = false;
}
}