Skip to content

Commit 9a49129

Browse files
committed
fix(tap): Increate isScrolledSinceStart from 2px radius to 15px, #970
1 parent e349186 commit 9a49129

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

js/utils/tap.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@
135135
return false;
136136
}
137137

138-
return (c.x > startCoordinates.x + 2 ||
139-
c.x < startCoordinates.x - 2 ||
140-
c.y > startCoordinates.y + 2 ||
141-
c.y < startCoordinates.y - 2);
138+
return (c.x > startCoordinates.x + HIT_RADIUS ||
139+
c.x < startCoordinates.x - HIT_RADIUS ||
140+
c.y > startCoordinates.y + HIT_RADIUS ||
141+
c.y < startCoordinates.y - HIT_RADIUS);
142142
}
143143

144144
function recordCoordinates(event) {

0 commit comments

Comments
 (0)