1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-15 04:55:23 +02:00

listviews: fixed max scroll speed

Change-Id: I29633415aa15379743c0a2a8f2274e33b75e3f39
GitLab: #288
This commit is contained in:
Sébastien Blin 2021-04-07 11:09:03 -04:00
parent 12daccb51f
commit a69943e042
No known key found for this signature in database
GPG key ID: C894BB01EEB2A9A9
6 changed files with 11 additions and 9 deletions

View file

@ -44,6 +44,7 @@ Rectangle {
visible: listViewBackground.visible
layer.mipmap: false
clip: true
maximumFlickVelocity: 1024
ScrollIndicator.vertical: ScrollIndicator {}
}

View file

@ -89,6 +89,7 @@ ListView {
}
clip: true
maximumFlickVelocity: 1024
delegate: ConversationSmartListViewItemDelegate {
id: smartListItemDelegate

View file

@ -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
}
}

View file

@ -85,7 +85,7 @@ Rectangle {
}
function getAdvancedSettingsScrollPosition() {
return advancedSettings.y / root.height
return advancedSettings.y
}
function setPasswordButtonText() {

View file

@ -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

View file

@ -124,6 +124,7 @@ Rectangle {
Layout.bottomMargin: 10
model: PluginAdapter.getPluginSelectableModel()
maximumFlickVelocity: 1024
delegate: PluginItemDelegate {
id: pluginItemDelegate