From 9454be263db39466169b65d74d4e756c8134e5a4 Mon Sep 17 00:00:00 2001 From: Horror Proton <107091537+horror-proton@users.noreply.github.com> Date: Tue, 15 Nov 2022 11:35:32 +0800 Subject: [PATCH] feat: remove post delay in minitouch swipe --- src/MeoAssistant/Controller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MeoAssistant/Controller.cpp b/src/MeoAssistant/Controller.cpp index 5c4f2578dd..e356f7c724 100644 --- a/src/MeoAssistant/Controller.cpp +++ b/src/MeoAssistant/Controller.cpp @@ -1079,10 +1079,10 @@ bool asst::Controller::swipe_without_scale(const Point& p1, const Point& p2, int } }; minitouch_move(x1, y1, x2, y2, duration); - constexpr int ExtraEndDelay = 100; // 停留终点 - toucher.wait(ExtraEndDelay); if (extra_swipe && opt.minitouch_extra_swipe_duration > 0) { + constexpr int ExtraEndDelay = 100; // 停留终点 + toucher.wait(ExtraEndDelay); minitouch_move(x2, y2, x2, y2 - opt.minitouch_extra_swipe_dist, opt.minitouch_extra_swipe_duration); duration += opt.minitouch_extra_swipe_duration; }