From fd0bc418347eca66cf6fb2af64692bc560ebf83e Mon Sep 17 00:00:00 2001 From: MistEO Date: Tue, 15 Nov 2022 00:05:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A2=9D=E5=A4=96=E4=B8=BAminitouch?= =?UTF-8?q?=E6=AF=8F=E6=AC=A1=E6=93=8D=E4=BD=9C=E5=A2=9E=E5=8A=A0=E5=BB=B6?= =?UTF-8?q?=E8=BF=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MeoAssistant/Controller.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/MeoAssistant/Controller.h b/src/MeoAssistant/Controller.h index 9dabd94669..b61bc27292 100644 --- a/src/MeoAssistant/Controller.h +++ b/src/MeoAssistant/Controller.h @@ -211,7 +211,8 @@ namespace asst { public: static constexpr int DefaultClickDelay = 50; - static constexpr int DefaultSwipeDelay = 1; + static constexpr int DefaultSwipeDelay = 2; + static constexpr int ExtraDelay = 100; MinitouchHelper(const MinitouchProps& props, bool auto_sleep = true) : m_props(props), m_auto_sleep(auto_sleep) @@ -292,7 +293,7 @@ namespace asst int scale_y(int y) const noexcept { return static_cast(y * m_props.y_scaling); } const MinitouchProps& m_props; - int m_wait_ms_count = 0; + int m_wait_ms_count = ExtraDelay; bool m_auto_sleep = false; };