remove touchobserver

This commit is contained in:
Malte E 2022-02-20 10:09:22 +01:00
parent 46fbb0e749
commit ea7c8d1427

View file

@ -23,23 +23,18 @@ Item {
ScrollBar { ScrollBar {
id: scrollbar id: scrollbar
interactive: !touchObserver.wasTouched interactive: false
parent: chat.parent parent: chat.parent
anchors.top: parent.top anchors.top: parent.top
anchors.right: parent.right anchors.right: parent.right
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
} }
EventObserver {
id: touchObserver
anchors.fill: parent
ListView { ListView {
id: chat id: chat
anchors.fill: parent anchors.fill: parent
property int delegateMaxWidth: ((Settings.timelineMaxWidth > 100 && Settings.timelineMaxWidth < chatRoot.availableWidth) ? Settings.timelineMaxWidth : chatRoot.availableWidth) - chatRoot.padding * 2 - scrollbar.width property int delegateMaxWidth: ((Settings.timelineMaxWidth > 100 && Settings.timelineMaxWidth < chatRoot.availableWidth) ? Settings.timelineMaxWidth : chatRoot.availableWidth) - chatRoot.padding * 2
displayMarginBeginning: height / 2 displayMarginBeginning: height / 2
displayMarginEnd: height / 2 displayMarginEnd: height / 2
@ -570,8 +565,6 @@ Item {
} }
} }
}
} }
Platform.Menu { Platform.Menu {