Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(753)

Unified Diff: ui/keyboard/resources/constants.js

Issue 230993003: Limits the range of touch fuzzing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/keyboard/resources/touch_fuzzing.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/resources/constants.js
diff --git a/ui/keyboard/resources/constants.js b/ui/keyboard/resources/constants.js
index 57fee3c5c455deb34bc88e2fa1abc00a8599c0c8..96365592caf4d351f352e03c383f4a1949645339 100644
--- a/ui/keyboard/resources/constants.js
+++ b/ui/keyboard/resources/constants.js
@@ -80,6 +80,13 @@ var KEY_PADDING_TOP = 1;
var KEY_PADDING_BOTTOM = 1;
/**
+ * The greatest distance between a key and a touch point for a PointerEvent
+ * to be processed.
+ * @type {number}
+ */
+var MAX_TOUCH_FUZZ_DISTANCE = 20;
+
+/**
* The maximum number of extra pixels before a resize is triggered.
* @type {number}
*/
« no previous file with comments | « no previous file | ui/keyboard/resources/touch_fuzzing.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698