Follow the scroll direction in swipe gestures.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Ilya Fedin
2026-08-27 20:14:32 +04:00
committed by John Preston
parent d99b56b5e0
commit b65cd9496a
8 changed files with 95 additions and 42 deletions

View File

@@ -476,8 +476,8 @@ void PaintRow(
&& !context.quickActionContext->ripple
&& (history->peer->id.value
== context.quickActionContext->data.msgBareId)) {
swipeTranslation = context.quickActionContext->data.exactTranslation
* -2;
swipeTranslation
= context.quickActionContext->data.visualExactTranslation() * -2;
}
if (swipeTranslation) {
p.translate(-swipeTranslation, 0);