fix weirdass scroll speed

This commit is contained in:
end-4 2025-07-28 11:58:50 +07:00
parent 2fd7d45b9c
commit 496caa6fb1
13 changed files with 27 additions and 7 deletions

View file

@ -3,7 +3,7 @@ import QtQuick.Layouts
import qs.modules.common import qs.modules.common
import qs.modules.common.widgets import qs.modules.common.widgets
Flickable { StyledFlickable {
id: root id: root
property real baseWidth: 550 property real baseWidth: 550
property bool forceWidth: false property bool forceWidth: false
@ -25,4 +25,5 @@ Flickable {
} }
spacing: 20 spacing: 20
} }
} }

View file

@ -220,7 +220,7 @@ Item { // Notification item area
PointingHandLinkHover {} PointingHandLinkHover {}
} }
Flickable { // Notification actions StyledFlickable { // Notification actions
id: actionsFlickable id: actionsFlickable
Layout.fillWidth: true Layout.fillWidth: true
implicitHeight: actionRowLayout.implicitHeight implicitHeight: actionRowLayout.implicitHeight

View file

@ -71,6 +71,9 @@ Item {
currentIndex: root.defaultChoice !== undefined ? root.items.indexOf(root.defaultChoice) : -1 currentIndex: root.defaultChoice !== undefined ? root.items.indexOf(root.defaultChoice) : -1
spacing: 6 spacing: 6
maximumFlickVelocity: 3500
boundsBehavior: Flickable.DragOverBounds
model: ScriptModel { model: ScriptModel {
id: choiceModel id: choiceModel
} }

View file

@ -0,0 +1,6 @@
import QtQuick
Flickable {
maximumFlickVelocity: 3500
boundsBehavior: Flickable.DragOverBounds
}

View file

@ -20,6 +20,9 @@ ListView {
root.dragDistance = 0 root.dragDistance = 0
} }
maximumFlickVelocity: 3500
boundsBehavior: Flickable.DragOverBounds
add: Transition { add: Transition {
animations: [ animations: [
Appearance?.animation.elementMove.numberAnimation.createObject(this, { Appearance?.animation.elementMove.numberAnimation.createObject(this, {

View file

@ -249,7 +249,7 @@ Item { // Wrapper
color: Appearance.colors.colOutlineVariant color: Appearance.colors.colOutlineVariant
} }
ListView { // App results StyledListView { // App results
id: appResults id: appResults
visible: root.showResults visible: root.showResults
Layout.fillWidth: true Layout.fillWidth: true
@ -260,6 +260,8 @@ Item { // Wrapper
spacing: 2 spacing: 2
KeyNavigation.up: searchBar KeyNavigation.up: searchBar
highlightMoveDuration: 100 highlightMoveDuration: 100
add: null
remove: null
onFocusChanged: { onFocusChanged: {
if (focus) if (focus)

View file

@ -97,7 +97,7 @@ Rectangle {
} }
} }
Flickable { // Tag strip StyledFlickable { // Tag strip
id: tagsFlickable id: tagsFlickable
visible: root.responseData.tags.length > 0 visible: root.responseData.tags.length > 0
Layout.alignment: Qt.AlignLeft Layout.alignment: Qt.AlignLeft

View file

@ -16,7 +16,7 @@ Item {
property int todoListItemPadding: 8 property int todoListItemPadding: 8
property int listBottomPadding: 80 property int listBottomPadding: 80
Flickable { StyledFlickable {
id: flickable id: flickable
anchors.fill: parent anchors.fill: parent
contentHeight: columnLayout.height contentHeight: columnLayout.height

View file

@ -40,7 +40,7 @@ Item {
Item { Item {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
ListView { StyledListView {
id: listView id: listView
model: root.appPwNodes model: root.appPwNodes
clip: true clip: true
@ -187,7 +187,7 @@ Item {
Layout.rightMargin: dialogMargins Layout.rightMargin: dialogMargins
} }
Flickable { StyledFlickable {
id: dialogFlickable id: dialogFlickable
Layout.fillWidth: true Layout.fillWidth: true
clip: true clip: true

View file

@ -1,6 +1,7 @@
//@ pragma UseQApplication //@ pragma UseQApplication
//@ pragma Env QS_NO_RELOAD_POPUP=1 //@ pragma Env QS_NO_RELOAD_POPUP=1
//@ pragma Env QT_QUICK_CONTROLS_STYLE=Basic //@ pragma Env QT_QUICK_CONTROLS_STYLE=Basic
//@ pragma Env QT_QUICK_FLICKABLE_WHEEL_DECELERATION=10000
// Adjust this to make it smaller or larger // Adjust this to make it smaller or larger
//@ pragma Env QT_SCALE_FACTOR=1 //@ pragma Env QT_SCALE_FACTOR=1

View file

@ -1,6 +1,7 @@
//@ pragma UseQApplication //@ pragma UseQApplication
//@ pragma Env QS_NO_RELOAD_POPUP=1 //@ pragma Env QS_NO_RELOAD_POPUP=1
//@ pragma Env QT_QUICK_CONTROLS_STYLE=Basic //@ pragma Env QT_QUICK_CONTROLS_STYLE=Basic
//@ pragma Env QT_QUICK_FLICKABLE_WHEEL_DECELERATION=10000
// Adjust this to make the app smaller or larger // Adjust this to make the app smaller or larger
//@ pragma Env QT_SCALE_FACTOR=1 //@ pragma Env QT_SCALE_FACTOR=1

View file

@ -1,10 +1,12 @@
//@ pragma UseQApplication //@ pragma UseQApplication
//@ pragma Env QS_NO_RELOAD_POPUP=1 //@ pragma Env QS_NO_RELOAD_POPUP=1
//@ pragma Env QT_QUICK_CONTROLS_STYLE=Basic //@ pragma Env QT_QUICK_CONTROLS_STYLE=Basic
//@ pragma Env QT_QUICK_FLICKABLE_WHEEL_DECELERATION=10000
// Adjust this to make the shell smaller or larger // Adjust this to make the shell smaller or larger
//@ pragma Env QT_SCALE_FACTOR=1 //@ pragma Env QT_SCALE_FACTOR=1
import "./modules/common/" import "./modules/common/"
import "./modules/background/" import "./modules/background/"
import "./modules/bar/" import "./modules/bar/"

View file

@ -1,6 +1,7 @@
//@ pragma UseQApplication //@ pragma UseQApplication
//@ pragma Env QS_NO_RELOAD_POPUP=1 //@ pragma Env QS_NO_RELOAD_POPUP=1
//@ pragma Env QT_QUICK_CONTROLS_STYLE=Basic //@ pragma Env QT_QUICK_CONTROLS_STYLE=Basic
//@ pragma Env QT_QUICK_FLICKABLE_WHEEL_DECELERATION=10000
// Adjust this to make the app smaller or larger // Adjust this to make the app smaller or larger
//@ pragma Env QT_SCALE_FACTOR=1 //@ pragma Env QT_SCALE_FACTOR=1