mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Improved process of message repaint on swipe to reply.
This commit is contained in:
parent
3d2af9db8e
commit
fb1b845211
1 changed files with 7 additions and 2 deletions
|
@ -383,10 +383,15 @@ HistoryInner::HistoryInner(
|
|||
_migrated->delegateMixin()->setCurrent(this);
|
||||
_migrated->translateTo(_history->translatedTo());
|
||||
}
|
||||
HistoryView::SetupSwipeHandler(this, _scroll, [=](
|
||||
HistoryView::SetupSwipeHandler(this, _scroll, [=, history = _history](
|
||||
HistoryView::ChatPaintGestureHorizontalData data) {
|
||||
_gestureHorizontal = data;
|
||||
update();
|
||||
const auto item = history->peer->owner().message(
|
||||
history->peer->id,
|
||||
MsgId{ data.msgBareId });
|
||||
if (item) {
|
||||
repaintItem(item);
|
||||
}
|
||||
}, [=, show = controller->uiShow()](int cursorTop) {
|
||||
auto result = HistoryView::SwipeHandlerFinishData();
|
||||
if (inSelectionMode()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue