6b9077816e
Also make horizontal scrolling available when kinetic scrolling is disabled
28 lines
720 B
QML
28 lines
720 B
QML
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
import QtQuick 2.12
|
|
import QtQuick.Controls 2.12
|
|
|
|
Flickable {
|
|
id: flickable
|
|
maximumFlickVelocity: window.settings.kineticScrollingMaxSpeed
|
|
flickDeceleration: window.settings.kineticScrollingDeceleration
|
|
|
|
ScrollBar.vertical: HScrollBar {
|
|
visible: parent.interactive
|
|
z: 999
|
|
}
|
|
|
|
Component.onCompleted: {
|
|
kineticScrollingDisabler = Qt.createComponent(
|
|
"HKineticScrollingDisabler.qml"
|
|
).createObject(flickable, {
|
|
flickable: flickable,
|
|
width: enabled ? flickable.width : 0,
|
|
height: enabled ? flickable.height : 0,
|
|
})
|
|
}
|
|
|
|
property var kineticScrollingDisabler
|
|
}
|