Add kineticScrollingMaxSpeed setting
This commit is contained in:
parent
9dc0688557
commit
90a7a3a6cf
|
@ -240,6 +240,7 @@ class UISettings(JSONDataFile):
|
||||||
"hideProfileChangeEvents": True,
|
"hideProfileChangeEvents": True,
|
||||||
"hideMembershipEvents": False,
|
"hideMembershipEvents": False,
|
||||||
"hideUnknownEvents": True,
|
"hideUnknownEvents": True,
|
||||||
|
"kineticScrollingMaxSpeed": 2500,
|
||||||
"markRoomReadMsecDelay": 200,
|
"markRoomReadMsecDelay": 200,
|
||||||
"maxMessageCharactersPerLine": 65,
|
"maxMessageCharactersPerLine": 65,
|
||||||
"ownMessagesOnLeftAboveWidth": 895,
|
"ownMessagesOnLeftAboveWidth": 895,
|
||||||
|
|
|
@ -14,7 +14,7 @@ GridView {
|
||||||
preferredHighlightBegin: height / 2 - currentItemHeight / 2
|
preferredHighlightBegin: height / 2 - currentItemHeight / 2
|
||||||
preferredHighlightEnd: height / 2 + currentItemHeight / 2
|
preferredHighlightEnd: height / 2 + currentItemHeight / 2
|
||||||
|
|
||||||
maximumFlickVelocity: 4000
|
maximumFlickVelocity: window.settings.kineticScrollingMaxSpeed
|
||||||
|
|
||||||
|
|
||||||
highlight: Rectangle {
|
highlight: Rectangle {
|
||||||
|
|
|
@ -56,7 +56,7 @@ MouseArea {
|
||||||
Binding {
|
Binding {
|
||||||
target: flickable
|
target: flickable
|
||||||
property: "maximumFlickVelocity"
|
property: "maximumFlickVelocity"
|
||||||
value: mouseArea.enabled ? 0 : 4000.0
|
value: mouseArea.enabled ? 0 : window.settings.kineticScrollingMaxSpeed
|
||||||
}
|
}
|
||||||
|
|
||||||
Binding {
|
Binding {
|
||||||
|
|
|
@ -15,7 +15,7 @@ ListView {
|
||||||
preferredHighlightBegin: height / 2 - currentItemHeight / 2
|
preferredHighlightBegin: height / 2 - currentItemHeight / 2
|
||||||
preferredHighlightEnd: height / 2 + currentItemHeight / 2
|
preferredHighlightEnd: height / 2 + currentItemHeight / 2
|
||||||
|
|
||||||
maximumFlickVelocity: 4000
|
maximumFlickVelocity: window.settings.kineticScrollingMaxSpeed
|
||||||
|
|
||||||
|
|
||||||
highlight: Rectangle {
|
highlight: Rectangle {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user