Skip to content

Commit 32db2c9

Browse files
committed
Fix gesture not recognized when RFP is on (issue #540).
1 parent 634b9a1 commit 32db2c9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/content/gesture.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,10 @@
253253

254254
const { clientX, clientY, radiusX, radiusY } = e.touches[0];
255255

256-
if (Math.max(radiusX, radiusY) < 10) {
256+
if (Math.max(radiusX, radiusY) < 10
257+
// RFPTarget::TouchEvents sets both to 0, see issue #540
258+
&& radiusX + radiusY != 0
259+
) {
257260
console.debug("Too small to be a finger!"); // DEV_ONLY
258261
return;
259262
}

0 commit comments

Comments
 (0)