perf: 简单调整一点滑动延迟

This commit is contained in:
MistEO
2022-11-16 01:17:47 +08:00
parent 49484943fc
commit f55acb4220
2 changed files with 3 additions and 3 deletions

View File

@@ -6148,12 +6148,12 @@
"BattleUseOper": {
"algorithm": "JustReturn",
"preDelay": 200,
"postDelay": 100,
"postDelay": 150,
"Doc": "pre 是从点击干员到干员信息弹出来等待的时间post 是干员上场,到设置朝向之间等待的时间"
},
"BattleSwipeOper": {
"algorithm": "JustReturn",
"preDelay": 200,
"preDelay": 500,
"postDelay": 50,
"Doc": "pre 是将干员滑动到场上的 duration 系数post 是设置干员朝向滑动的 duration",
"specialParams": [

View File

@@ -1050,7 +1050,7 @@ bool asst::Controller::swipe_without_scale(const Point& p1, const Point& p2, int
Minitoucher toucher(std::bind(&Controller::input_to_minitouch, this, std::placeholders::_1), m_minitouch_props);
toucher.down(x1, y1);
if (duration == 0) {
duration = 200;
duration = 150;
}
auto minitouch_move = [&](int _x1, int _y1, int _x2, int _y2, int _duration) {
double accelerationx = acceleration_coef * static_cast<double>(_x2 - _x1) / (_duration * _duration);