diff --git a/src/RoomList.cpp b/src/RoomList.cpp index a80e0757..6feb4f76 100644 --- a/src/RoomList.cpp +++ b/src/RoomList.cpp @@ -19,6 +19,7 @@ #include #include +#include #include #include "Logging.h" @@ -41,6 +42,8 @@ RoomList::RoomList(QWidget *parent) scrollArea_->setWidgetResizable(true); scrollArea_->setAlignment(Qt::AlignLeading | Qt::AlignTop | Qt::AlignVCenter); + QScroller::grabGesture(scrollArea_, QScroller::TouchGesture); + // The scrollbar on macOS will hide itself when not active so it won't interfere // with the content. #if not defined(Q_OS_MAC) diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp index da8f2f56..87d802b8 100644 --- a/src/UserSettingsPage.cpp +++ b/src/UserSettingsPage.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -398,6 +399,8 @@ UserSettingsPage::UserSettingsPage(QSharedPointer settings, QWidge scrollArea_->setWidgetResizable(true); scrollArea_->setAlignment(Qt::AlignTop | Qt::AlignVCenter); + QScroller::grabGesture(scrollArea_, QScroller::TouchGesture); + auto scrollAreaContents_ = new QWidget(this); scrollAreaContents_->setObjectName("UserSettingScrollWidget"); scrollAreaContents_->setLayout(mainLayout_);