Slightly change flick timing's in batch mode
[platform/core/accessibility/universal-switch.git] / src / batch / BatchRunner.cpp
index 3b6bbe6..7bf1908 100644 (file)
@@ -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 } } };
        };