docs: document intentional propagateComposedEvents: true on right-click MouseArea

This commit is contained in:
Vybe (Coding Agent) 2026-05-19 04:40:49 +00:00
parent 1b7d3a3b7e
commit 0083fe7dc2

View file

@ -311,6 +311,10 @@ PluginComponent {
}
}
// propagateComposedEvents: true so that right-clicks both trigger our context menu
// *and* bubble to any parent MouseArea (e.g. for shell-level drag handling).
// Documented because the default (false) is far more common and this choice
// frequently surprises future maintainers.
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.RightButton