We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62cff34 commit fa39a52Copy full SHA for fa39a52
1 file changed
src/content/gesture.js
@@ -251,23 +251,15 @@
251
path = [];
252
console.debug("NoScript gesture processing touch event", e); // DEV_ONLY
253
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
264
if (ns?.canScript && e.target instanceof HTMLCanvasElement) {
265
console.debug("Input to a drawing app? Bailing out."); // DEV_ONLY
266
return;
267
}
268
269
setupLogo();
270
setupCanvas();
+
+ const { clientX, clientY } = e.touches[0];
271
path.push({ x: clientX, y: clientY });
272
};
273
0 commit comments