summary refs log tree commit diff
path: root/src/RoomList.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-12-15 00:17:44 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-12-15 00:17:56 +0100
commitb8ce9d543d730b912245015591cfa2cb892af657 (patch)
tree5cf860a56376f26eb17e491e26d663c47be2ba1e /src/RoomList.cpp
parentBackground color for code and don't collapse space in timeline (diff)
downloadnheko-b8ce9d543d730b912245015591cfa2cb892af657.tar.xz
Fix scrolling the room list using touch
Diffstat (limited to '')
-rw-r--r--src/RoomList.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/RoomList.cpp b/src/RoomList.cpp

index 8c9e296f..aab89491 100644 --- a/src/RoomList.cpp +++ b/src/RoomList.cpp
@@ -45,8 +45,10 @@ RoomList::RoomList(QSharedPointer<UserSettings> userSettings, QWidget *parent) scrollArea_->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents); scrollArea_->setWidgetResizable(true); scrollArea_->setAlignment(Qt::AlignLeading | Qt::AlignTop | Qt::AlignVCenter); + scrollArea_->setAttribute(Qt::WA_AcceptTouchEvents); QScroller::grabGesture(scrollArea_, QScroller::TouchGesture); + QScroller::grabGesture(scrollArea_, QScroller::LeftMouseButtonGesture); // The scrollbar on macOS will hide itself when not active so it won't interfere // with the content.