Fix cursorShape over fields inside a HFlickable
Bug introduced in 6b907, made the cursor stay as a normal arrow when hovering text fields/areas inside a HFlickable due to the HKineticScrollingDisabler's width/height being incorrectly set.
This commit is contained in:
parent
43b14f3129
commit
8fbe59f6eb
1
TODO.md
1
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
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user