diff --git a/src/gui/Base/HListView.qml b/src/gui/Base/HListView.qml index dcac8449..0082c304 100644 --- a/src/gui/Base/HListView.qml +++ b/src/gui/Base/HListView.qml @@ -6,7 +6,6 @@ import QtQuick.Controls 2.12 ListView { id: listView - property alias cursorShape: cursorShapeArea.cursorShape property int currentItemHeight: currentItem ? currentItem.height : 0 property var checked: ({}) @@ -130,12 +129,6 @@ ListView { onSelectedCountChanged: if (! selectedCount) lastCheckedDelegateIndex = 0 - MouseArea { - id: cursorShapeArea - anchors.fill: parent - acceptedButtons: Qt.NoButton - } - HKineticScrollingDisabler { width: enabled ? parent.width : 0 height: enabled ? parent.height : 0 diff --git a/src/gui/Pages/Chat/Timeline/EventList.qml b/src/gui/Pages/Chat/Timeline/EventList.qml index 75c1c902..b3632b32 100644 --- a/src/gui/Pages/Chat/Timeline/EventList.qml +++ b/src/gui/Pages/Chat/Timeline/EventList.qml @@ -196,6 +196,8 @@ Rectangle { property string delegateWithSelectedText: "" property string selectedText: "" + property alias cursorShape: cursorShapeArea.cursorShape + readonly property var redactableCheckedEvents: getSortedChecked().filter(ev => eventList.canRedact(ev)) @@ -360,6 +362,12 @@ Rectangle { // When an invited room becomes joined, we should now be able to // fetch past events. onInviterChanged: canLoad = true + + MouseArea { + id: cursorShapeArea + anchors.fill: parent + acceptedButtons: Qt.NoButton + } } Timer {