mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed propagation scroll from chats filters strip to chats list.
This commit is contained in:
parent
9c1701c62a
commit
ad9ebdf8e6
1 changed files with 15 additions and 1 deletions
|
@ -1307,7 +1307,21 @@ void Widget::toggleFiltersMenu(bool enabled) {
|
||||||
if (!enabled == !_chatFilters) {
|
if (!enabled == !_chatFilters) {
|
||||||
return;
|
return;
|
||||||
} else if (enabled) {
|
} 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 raw = _chatFilters.get();
|
||||||
const auto inner = Ui::AddChatFiltersTabsStrip(
|
const auto inner = Ui::AddChatFiltersTabsStrip(
|
||||||
_chatFilters.get(),
|
_chatFilters.get(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue