From 61fc0e48934d99b6db280654a86041262d392799 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 20 Feb 2020 13:38:01 -0800 Subject: [PATCH] Don't allow Flickables to be dragged beyond bounds --- app/gui/CenteredGridView.qml | 2 ++ app/gui/SettingsView.qml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/gui/CenteredGridView.qml b/app/gui/CenteredGridView.qml index 19e02053..ba2b6569 100644 --- a/app/gui/CenteredGridView.qml +++ b/app/gui/CenteredGridView.qml @@ -38,4 +38,6 @@ GridView { updateMargins() } + + boundsBehavior: Flickable.OvershootBounds } diff --git a/app/gui/SettingsView.qml b/app/gui/SettingsView.qml index 816b62ac..dd15b946 100644 --- a/app/gui/SettingsView.qml +++ b/app/gui/SettingsView.qml @@ -10,6 +10,8 @@ Flickable { id: settingsPage objectName: "Settings" + boundsBehavior: Flickable.OvershootBounds + contentWidth: settingsColumn1.width > settingsColumn2.width ? settingsColumn1.width : settingsColumn2.width contentHeight: settingsColumn1.height > settingsColumn2.height ? settingsColumn1.height : settingsColumn2.height