Add kineticScrollingMaxSpeed setting

This commit is contained in:
miruka 2020-06-27 08:56:50 -04:00
parent 9dc0688557
commit 90a7a3a6cf
4 changed files with 4 additions and 3 deletions

View File

@ -240,6 +240,7 @@ class UISettings(JSONDataFile):
"hideProfileChangeEvents": True,
"hideMembershipEvents": False,
"hideUnknownEvents": True,
"kineticScrollingMaxSpeed": 2500,
"markRoomReadMsecDelay": 200,
"maxMessageCharactersPerLine": 65,
"ownMessagesOnLeftAboveWidth": 895,

View File

@ -14,7 +14,7 @@ GridView {
preferredHighlightBegin: height / 2 - currentItemHeight / 2
preferredHighlightEnd: height / 2 + currentItemHeight / 2
maximumFlickVelocity: 4000
maximumFlickVelocity: window.settings.kineticScrollingMaxSpeed
highlight: Rectangle {

View File

@ -56,7 +56,7 @@ MouseArea {
Binding {
target: flickable
property: "maximumFlickVelocity"
value: mouseArea.enabled ? 0 : 4000.0
value: mouseArea.enabled ? 0 : window.settings.kineticScrollingMaxSpeed
}
Binding {

View File

@ -15,7 +15,7 @@ ListView {
preferredHighlightBegin: height / 2 - currentItemHeight / 2
preferredHighlightEnd: height / 2 + currentItemHeight / 2
maximumFlickVelocity: 4000
maximumFlickVelocity: window.settings.kineticScrollingMaxSpeed
highlight: Rectangle {