Fix build with MSVC.

This commit is contained in:
John Preston 2024-09-04 14:45:07 +04:00
parent 4430bd0328
commit 1f4a8d7eb6

View File

@ -48,9 +48,9 @@ void SetupSwipeHandler(
update({ update({
.ratio = std::clamp(ratio, 0., 1.5), .ratio = std::clamp(ratio, 0., 1.5),
.reachRatio = state->animationReach.value(0.), .reachRatio = state->animationReach.value(0.),
.msgBareId = state->finishByTopData.msgBareId,
.translation = int( .translation = int(
base::SafeRound(-std::clamp(ratio, 0., 1.5) * threshold)), base::SafeRound(-std::clamp(ratio, 0., 1.5) * threshold)),
.msgBareId = state->finishByTopData.msgBareId,
.cursorTop = state->cursorTop, .cursorTop = state->cursorTop,
}); });
}; };