fix(qt): wheel-lock sweep across plain-Item modal overlays
Plain-Item overlays get no modal grab, so a MouseArea that swallows presses still lets the wheel scroll the page underneath (the rule and its wording live in DiscoverConfigModal.qml). Every scrim and panel swallow across the modal set now accepts the wheel; the modal Popups (TrackInfo, CastPicker, AlbumInfo, QconnectDev, LocalMediaInfo) already had the Overlay grab, and CoverLightbox — a non-modal Popup — gets its own. cc
This commit is contained in:
23 files changed
+190
-28
No files matched your search
@@ -83,6 +83,8 @@ Item {
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: QbzShell.logClose()
|
||||
// Wheel-lock (the DiscoverConfigModal rule).
|
||||
onWheel: function (wheel) { wheel.accepted = true }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,7 +111,11 @@ Item {
|
||||
border.color: theme.borderSubtle
|
||||
|
||||
// Swallow clicks so they never reach the closing backdrop.
|
||||
MouseArea { anchors.fill: parent }
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
// Wheel-lock (the DiscoverConfigModal rule).
|
||||
onWheel: function (wheel) { wheel.accepted = true }
|
||||
}
|
||||
|
||||
// ANCHORED, not a Column. The body is the only stretch row and its
|
||||
// height depends on which optional rows are mounted (the advanced
|
||||
|
||||
Reference in new issue
Block a user