Skip to content

Commit

Permalink
Fix preview showing on fast userpic click.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed May 28, 2024
1 parent a60783e commit 470b3a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1760,6 +1760,8 @@ void InnerWidget::mousePressReleased(
QPoint globalPosition,
Qt::MouseButton button,
Qt::KeyboardModifiers modifiers) {
_chatPreviewTimer.cancel();

auto wasDragging = (_dragging != nullptr);
if (wasDragging) {
updateReorderIndexGetCount();
Expand Down

0 comments on commit 470b3a2

Please sign in to comment.