1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-04 21:02:06 -04:00

cc: expand mouse areas of scroll/click targets in bar

This commit is contained in:
bbedward
2026-02-09 13:15:43 -05:00
parent 91569affd7
commit b645487e79
2 changed files with 92 additions and 85 deletions

View File

@@ -35,7 +35,7 @@ Item {
readonly property real bottomMargin: isVerticalOrientation ? (isBottomBarEdge && isLast ? barEdgeExtension : (isLast ? gapExtension : gapExtension / 2)) : 0
signal clicked
signal rightClicked
signal rightClicked(real rootX, real rootY)
signal wheel(var wheelEvent)
width: isVerticalOrientation ? barThickness : visualWidth
@@ -125,7 +125,8 @@ Item {
acceptedButtons: Qt.LeftButton | Qt.RightButton
onPressed: function (mouse) {
if (mouse.button === Qt.RightButton) {
root.rightClicked();
const rPos = mouseArea.mapToItem(root, mouse.x, mouse.y);
root.rightClicked(rPos.x, rPos.y);
return;
}
if (popoutTarget) {