Skip to content

Commit 44c6417

Browse files
author
Max Carlson
committed
Only send pos when there's a single pointer down
1 parent 8da0aef commit 44c6417

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

WebSites/spacetime/navigator.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@
9999

100100
// Cache the distance for the next move event
101101
prevDiff = curDiff;
102-
}
103-
104-
if (evCache.length > 0) {
102+
} else if (evCache.length == 1) {
105103
// use first pointer
106104
let relX = ev.clientX - prevX;
107105
if (prevX === 0) relX = 0;

0 commit comments

Comments
 (0)