Fixed propagation scroll from chats filters strip to chats list.

This commit is contained in:
23rd 2024-11-13 19:29:32 +03:00
parent 9c1701c62a
commit ad9ebdf8e6

View file

@ -1307,7 +1307,21 @@ void Widget::toggleFiltersMenu(bool enabled) {
if (!enabled == !_chatFilters) {
return;
} else if (enabled) {
_chatFilters = base::make_unique_q<Ui::RpWidget>(this);
class NoScrollPropagationWidget final : public Ui::RpWidget {
public:
using Ui::RpWidget::RpWidget;
protected:
void touchEvent(QTouchEvent *e) {
e->accept();
}
void wheelEvent(QWheelEvent *e) override final {
e->accept();
}
};
_chatFilters = base::make_unique_q<NoScrollPropagationWidget>(this);
const auto raw = _chatFilters.get();
const auto inner = Ui::AddChatFiltersTabsStrip(
_chatFilters.get(),