From fb18b63a3d25d0c635957a1e9329de2c7a8a239b Mon Sep 17 00:00:00 2001 From: Radoslaw Cybulski Date: Fri, 7 Jun 2019 08:12:59 +0200 Subject: [PATCH] Slightly change flick timing's in batch mode Change-Id: Ic9b0bc4e64c415fa524d081dd1f730b73f7066cd --- src/batch/BatchRunner.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/batch/BatchRunner.cpp b/src/batch/BatchRunner.cpp index 3b6bbe6..7bf1908 100644 --- a/src/batch/BatchRunner.cpp +++ b/src/batch/BatchRunner.cpp @@ -993,6 +993,7 @@ void BatchExecutor::insertMethods() auto sleep_until = std::chrono::high_resolution_clock::now() + std::chrono::milliseconds{ 400 }; for (auto i = 0u; i < tapCount; ++i) { + if (i > 0) std::this_thread::sleep_for(std::chrono::milliseconds{ 100 }); executeOnMainThread([&]() { auto res = utils::generateTapGesture(coord.x, coord.y, 0.0f, fingerCount); if (!res) @@ -1020,9 +1021,9 @@ void BatchExecutor::insertMethods() executeOnMainThread([&]() { - utils::generateDragGesture(x0, y0, x1, y1, 10, 0.0, fingerCount); + utils::generateDragGesture(x0, y0, x1, y1, 20, 0.0, fingerCount); }); - std::this_thread::sleep_for(std::chrono::milliseconds{ 1000 }); + std::this_thread::sleep_for(std::chrono::milliseconds{ 600 }); return EvaluationValue{}; }, { { "fingers", 1 } } }; }; -- 2.7.4