Skip to content

Commit fa39a52

Browse files
committed
[UX][Android] Remove finger-size gating for gesture detection (issues #540, #541).
1 parent 62cff34 commit fa39a52

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

src/content/gesture.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -251,23 +251,15 @@
251251
path = [];
252252
console.debug("NoScript gesture processing touch event", e); // DEV_ONLY
253253

254-
const { clientX, clientY, radiusX, radiusY } = e.touches[0];
255-
256-
if (Math.max(radiusX, radiusY) < 10
257-
// RFPTarget::TouchEvents sets both to 0, see issue #540
258-
&& radiusX + radiusY != 0
259-
) {
260-
console.debug("Too small to be a finger!"); // DEV_ONLY
261-
return;
262-
}
263-
264254
if (ns?.canScript && e.target instanceof HTMLCanvasElement) {
265255
console.debug("Input to a drawing app? Bailing out."); // DEV_ONLY
266256
return;
267257
}
268258

269259
setupLogo();
270260
setupCanvas();
261+
262+
const { clientX, clientY } = e.touches[0];
271263
path.push({ x: clientX, y: clientY });
272264
};
273265

0 commit comments

Comments
 (0)