Fixed dialog dragging with pressed quick dialog action.

This commit is contained in:
23rd 2025-03-18 17:35:25 +03:00
parent c11a7589e2
commit feb1d4ebcc

View file

@ -2015,6 +2015,11 @@ void InnerWidget::checkReorderPinnedStart(QPoint localPosition) {
< style::ConvertScale(kStartReorderThreshold)) { < style::ConvertScale(kStartReorderThreshold)) {
return; return;
} }
if ((_pressButton == Qt::MiddleButton)
&& (Core::App().settings().quickDialogAction()
!= Dialogs::Ui::QuickDialogAction::Disabled)) {
return;
}
_dragging = _pressed; _dragging = _pressed;
startReorderPinned(localPosition); startReorderPinned(localPosition);
} }
@ -2307,6 +2312,7 @@ void InnerWidget::mousePressReleased(
it->second->ripple->lastStop(); it->second->ripple->lastStop();
it->second->rippleFg->lastStop(); it->second->rippleFg->lastStop();
} }
if (pressed == _selected) {
PerformQuickDialogAction( PerformQuickDialogAction(
_controller, _controller,
history->peer, history->peer,
@ -2315,6 +2321,7 @@ void InnerWidget::mousePressReleased(
} }
} }
} }
}
updateSelectedRow(); updateSelectedRow();
if (!wasDragging && button == Qt::LeftButton) { if (!wasDragging && button == Qt::LeftButton) {
if ((collapsedPressed >= 0 && collapsedPressed == _collapsedSelected) if ((collapsedPressed >= 0 && collapsedPressed == _collapsedSelected)