From 7e124a265b1bd236fefdae5aea98ef029fa53fab Mon Sep 17 00:00:00 2001 From: Thiago Padilha Date: Fri, 18 Jul 2025 12:56:36 +0000 Subject: [PATCH] Fix repeat/take arguments in mouse_reporter.rs Fix 521 --- src/mouse_reporter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mouse_reporter.rs b/src/mouse_reporter.rs index e8fcdb3..1cad19a 100644 --- a/src/mouse_reporter.rs +++ b/src/mouse_reporter.rs @@ -224,8 +224,8 @@ impl MouseReporter { }; //Generate term codes - let x_iter = std::iter::repeat(lines_x.unsigned_abs()).take(button_no_x); - let y_iter = std::iter::repeat(lines_y.unsigned_abs()).take(button_no_y); + let x_iter = std::iter::repeat(button_no_x).take(lines_x.unsigned_abs()); + let y_iter = std::iter::repeat(button_no_y).take(lines_y.unsigned_abs()); x_iter .chain(y_iter)