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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user