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 {
id: scrollbar
interactive: !touchObserver.wasTouched
interactive: false
parent: chat.parent
anchors.top: parent.top
anchors.right: parent.right
anchors.bottom: parent.bottom
}
EventObserver {
id: touchObserver
anchors.fill: parent
ListView {
id: chat
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
displayMarginEnd: height / 2
@ -570,8 +565,6 @@ Item {
}
}
}
}
Platform.Menu {