Revert "fix: adding delay between swipe and click" (#9170)

This reverts commit b4fc3528de.
This commit is contained in:
Constrat
2024-05-26 09:48:56 +02:00
committed by GitHub
parent 84bee958ce
commit f76a8627cc

View File

@@ -199,7 +199,7 @@ bool asst::InfrastAbstractTask::enter_facility(int index)
Log.warn("index out of range:", index, m_custom_config.size());
return false;
}
InfrastFacilityImageAnalyzer analyzer(ctrler()->get_image());
analyzer.set_to_be_analyzed({ facility_name() });
if (!analyzer.analyze()) {
@@ -211,8 +211,6 @@ bool asst::InfrastAbstractTask::enter_facility(int index)
Log.info("facility index is out of range");
return false;
}
// 点击前先等一下,避免点太快 | Wait a moment before clicking to avoid clicking too fast
sleep(500);
ctrler()->click(rect);
m_cur_facility_index = index;