Merge "perfetto-ui: Fix bug in pan_and_zoom_handler.ts"
diff --git a/ui/src/frontend/pan_and_zoom_handler.ts b/ui/src/frontend/pan_and_zoom_handler.ts
index e485d63..db0a283 100644
--- a/ui/src/frontend/pan_and_zoom_handler.ts
+++ b/ui/src/frontend/pan_and_zoom_handler.ts
@@ -26,7 +26,9 @@
// event is not captured by the document, e.g. if it loses focus first, then
// we want to stop the animation as soon as possible.
const ANIMATION_AUTO_END_AFTER_INITIAL_KEYPRESS_MS = 700;
-const ANIMATION_AUTO_END_AFTER_KEYPRESS_MS = 80;
+// This value must be larger than the maximum delta between keydown repeat
+// events. Largest observed value so far: 86ms.
+const ANIMATION_AUTO_END_AFTER_KEYPRESS_MS = 100;
// This defines the step size for an individual pan or zoom keyboard tap.
const TAP_ANIMATION_TIME = 200;