Combine scroll and scroll finish commands
This commit is contained in:
parent
1f3aa58568
commit
ad3847f5aa
6 changed files with 19 additions and 32 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue