chore: Auto update by pre-commit hooks

https://github.com/MaaAssistantArknights/MaaAssistantArknights/actions/runs/21118556393
[skip changelog]
This commit is contained in:
github-actions[bot]
2026-01-18 21:04:18 +00:00
parent 7fa51393f6
commit ecd4a33f8d
16 changed files with 357 additions and 314 deletions

View File

@@ -154,7 +154,9 @@ bool asst::PlayToolsController::swipe(
toucher_down(p1);
auto bounds_check = [width, height](int x, int y) { return x >= 0 && x <= width && y >= 0 && y <= height; };
auto bounds_check = [width, height](int x, int y) {
return x >= 0 && x <= width && y >= 0 && y <= height;
};
auto move_func = [this](int x, int y) {
toucher_move({ x, y });
@@ -162,7 +164,17 @@ bool asst::PlayToolsController::swipe(
};
auto progressive_move = [&](int _x1, int _y1, int _x2, int _y2, int _duration) {
interpolate_swipe(_x1, _y1, _x2, _y2, _duration, DefaultSwipeDelay, slope_in, slope_out, move_func, bounds_check);
interpolate_swipe(
_x1,
_y1,
_x2,
_y2,
_duration,
DefaultSwipeDelay,
slope_in,
slope_out,
move_func,
bounds_check);
};
const auto& opt = Config.get_options();