Gallery: scroll initial cursor target into view on open

This commit is contained in:
Ryan Hughes
2026-05-18 01:47:29 -04:00
parent b8188ce46c
commit 54da1a90ab
@@ -21,7 +21,10 @@ Item {
function open(payloadJson) {
closingFromHost = false
window.visible = true
Qt.callLater(function() { if (keyCatcher) keyCatcher.forceActiveFocus() })
Qt.callLater(function() {
if (keyCatcher) keyCatcher.forceActiveFocus()
ensureCursorVisible(currentTarget())
})
}
// Host-initiated close (`shell hide`). Visibility flips without