diff --git a/Telegram/SourceFiles/history/view/reactions/history_view_reactions_selector.cpp b/Telegram/SourceFiles/history/view/reactions/history_view_reactions_selector.cpp index 94442aa2e5..eae6db0db1 100644 --- a/Telegram/SourceFiles/history/view/reactions/history_view_reactions_selector.cpp +++ b/Telegram/SourceFiles/history/view/reactions/history_view_reactions_selector.cpp @@ -918,9 +918,18 @@ void Selector::mousePressEvent(QMouseEvent *e) { } void Selector::mouseReleaseEvent(QMouseEvent *e) { - if (!_strip || _pressed != lookupSelectedIndex(e->pos())) { + if (!_strip) { return; } + if (_pressed != lookupSelectedIndex(e->pos())) { +#ifdef Q_OS_UNIX + if (!_over || e->button() != Qt::RightButton) { + return; + } +#else + return; +#endif // !Q_OS_UNIX + } _pressed = -1; const auto selected = _strip->selected(); if (selected == Strip::AddedButton::Expand) {