mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Prevent NPanel dragging when popup are open.
This commit is contained in:
@@ -26,7 +26,14 @@ Popup {
|
||||
y: (parent.height - height) * 0.5
|
||||
|
||||
modal: true
|
||||
clip: true
|
||||
|
||||
onOpened: {
|
||||
PanelService.willOpenPopup(root)
|
||||
}
|
||||
|
||||
onClosed: {
|
||||
PanelService.willClosePopup(root)
|
||||
}
|
||||
|
||||
function rgbToHsv(r, g, b) {
|
||||
r /= 255
|
||||
@@ -110,9 +117,9 @@ Popup {
|
||||
border.width: Math.max(1, Style.borderM * scaling)
|
||||
}
|
||||
|
||||
NScrollView {
|
||||
contentItem: NScrollView {
|
||||
id: scrollView
|
||||
anchors.fill: parent
|
||||
width: parent.width
|
||||
|
||||
verticalPolicy: ScrollBar.AlwaysOff
|
||||
horizontalPolicy: ScrollBar.AlwaysOff
|
||||
|
||||
Reference in New Issue
Block a user