Skip to content
Snippets Groups Projects
Commit 386b578e authored by Andreas Hatziiliou's avatar Andreas Hatziiliou
Browse files

UX: fix behavior with lists scrolling offscreen

Fixes behavior introduced in Qt where flickables (list) can scroll
infinitely off screen. Temporary fix to have more polished feel to
the app. Functionality to have a soft overscroll is supposedly fixed
in Qt 6.7 onward.

Change-Id: I031c590e1a351a0fe0d0ea1ea9ed17c24c5c572b
parent 76417edf
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,9 @@ Flickable {
orientation: Qt.Horizontal
}
// HACK: remove after migration to Qt 6.7+
boundsBehavior: Flickable.StopAtBounds
Keys.onLeftPressed: horizontalScrollBar.decrease()
Keys.onRightPressed: horizontalScrollBar.increase()
Keys.onUpPressed: verticalScrollBar.decrease()
......
......@@ -34,6 +34,9 @@ ListView {
attachedFlickableMoving: root.moving
}
// HACK: remove after migration to Qt 6.7+
boundsBehavior: Flickable.StopAtBounds
Keys.onUpPressed: verticalScrollBar.decrease()
Keys.onDownPressed: verticalScrollBar.increase()
}
......@@ -82,8 +82,9 @@ JamiFlickable {
ScrollBar.vertical.visible: text
ScrollBar.horizontal.visible: text
boundsMovement: Flickable.StopAtBounds
boundsBehavior: Flickable.DragOverBounds
// HACK: remove after migration to Qt 6.7+
boundsBehavior: Flickable.StopAtBounds
interactive: true
function resetEditableText() {
......
......@@ -30,6 +30,10 @@ ListView {
id: root
spacing: 10
// HACK: remove after migration to Qt 6.7+
boundsBehavior: Flickable.StopAtBounds
model: SortFilterProxyModel {
id: proxyModel
......
......@@ -281,6 +281,9 @@ SidePanelBase {
clip: true
contentHeight: contentItem.childrenRect.height
// HACK: remove after migration to Qt 6.7+
boundsBehavior: Flickable.StopAtBounds
model: getHeaders()
delegate: ColumnLayout {
id: col
......@@ -329,6 +332,9 @@ SidePanelBase {
clip: true
visible: isChildSelected
// HACK: remove after migration to Qt 6.7+
boundsBehavior: Flickable.StopAtBounds
model: modelData.children
delegate: ColumnLayout {
id: childCol
......
......@@ -37,6 +37,9 @@ ListView {
spacing: 5
cacheBuffer: 10
// HACK: remove after migration to Qt 6.7+
boundsBehavior: Flickable.StopAtBounds
property int rota: 0
header: Rectangle {
......@@ -141,6 +144,9 @@ ListView {
model: Count
// HACK: remove after migration to Qt 6.7+
boundsBehavior: Flickable.StopAtBounds
delegate: RowLayout {
id: rowLayoutDelegate
height: 40
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment