diff --git a/TODO.md b/TODO.md index f59f2389..706e4c89 100644 --- a/TODO.md +++ b/TODO.md @@ -3,7 +3,6 @@ - refresh server list button - server list sorting method / explain what the % number is (stability) - spam alt+shift+a/going to room when starting app on server browser → segfault -- cursor shape in HBox/HTabbedBox pages over fields - login with account already added → infinite spinner in room list - verify onKeyboardAccept/Cancel things respect button enabled state diff --git a/src/gui/Base/HFlickable.qml b/src/gui/Base/HFlickable.qml index 53d8e8e8..986b39ff 100644 --- a/src/gui/Base/HFlickable.qml +++ b/src/gui/Base/HFlickable.qml @@ -17,12 +17,17 @@ Flickable { Component.onCompleted: { kineticScrollingDisabler = Qt.createComponent( "HKineticScrollingDisabler.qml" - ).createObject(flickable, { - flickable: flickable, - width: enabled ? flickable.width : 0, - height: enabled ? flickable.height : 0, - }) + ).createObject(flickable, {flickable}) + + kineticScrollingDisabler.width = Qt.binding(() => + kineticScrollingDisabler.enabled ? flickable.width : 0 + ) + kineticScrollingDisabler.height = Qt.binding(() => + kineticScrollingDisabler.enabled ? flickable.height : 0 + ) } property var kineticScrollingDisabler + property var pr: kineticScrollingDisabler.enabled + onPrChanged: print("pr changed:", pr) }