Skip to content
Snippets Groups Projects
Unverified Commit a69943e0 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

listviews: fixed max scroll speed

Change-Id: I29633415aa15379743c0a2a8f2274e33b75e3f39
GitLab: #288
parent 12daccb5
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,7 @@ Rectangle {
visible: listViewBackground.visible
layer.mipmap: false
clip: true
maximumFlickVelocity: 1024
ScrollIndicator.vertical: ScrollIndicator {}
}
......
......@@ -89,6 +89,7 @@ ListView {
}
clip: true
maximumFlickVelocity: 1024
delegate: ConversationSmartListViewItemDelegate {
id: smartListItemDelegate
......
......@@ -162,19 +162,17 @@ Rectangle {
onBackArrowClicked: root.settingsBackArrowClicked()
}
ScrollView {
Flickable {
id: settingsViewScrollView
property ScrollBar vScrollBar: ScrollBar.vertical
anchors.top: settingsHeader.bottom
anchors.horizontalCenter: settingsViewRect.horizontalCenter
height: settingsViewRect.height - settingsHeader.height
width: settingsViewRect.width
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AsNeeded
maximumFlickVelocity: 1024
ScrollIndicator.vertical: ScrollIndicator {}
clip: true
contentHeight: rightSettingsStackLayout.height
......@@ -231,10 +229,9 @@ Rectangle {
onAdvancedSettingsToggled: {
if (settingsVisible)
settingsViewScrollView.vScrollBar.position =
getAdvancedSettingsScrollPosition()
settingsViewScrollView.contentY = getAdvancedSettingsScrollPosition()
else
settingsViewScrollView.vScrollBar.position = 0
settingsViewScrollView.contentY = 0
}
}
......
......@@ -85,7 +85,7 @@ Rectangle {
}
function getAdvancedSettingsScrollPosition() {
return advancedSettings.y / root.height
return advancedSettings.y
}
function setPasswordButtonText() {
......
......@@ -276,6 +276,7 @@ Rectangle {
model: PluginAdapter.getPluginPreferencesModel(root.pluginId, root.category)
interactive: false
maximumFlickVelocity: 1024
delegate: PreferenceItemDelegate {
id: preferenceItemDelegateCategory
......@@ -325,6 +326,7 @@ Rectangle {
model: PluginAdapter.getPluginPreferencesModel(root.pluginId)
interactive: false
maximumFlickVelocity: 1024
delegate: PreferenceItemDelegate {
id: preferenceItemDelegate
......
......@@ -124,6 +124,7 @@ Rectangle {
Layout.bottomMargin: 10
model: PluginAdapter.getPluginSelectableModel()
maximumFlickVelocity: 1024
delegate: PluginItemDelegate {
id: pluginItemDelegate
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment