mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
review
This commit is contained in:
@@ -14,6 +14,7 @@ Item {
|
||||
property string tooltipText
|
||||
property string tooltipDirection: "auto"
|
||||
property bool allowClickWhenDisabled: false
|
||||
property bool allowScroll: false
|
||||
property bool hovering: false
|
||||
|
||||
property color colorBg: Color.mSurfaceVariant
|
||||
@@ -123,8 +124,12 @@ Item {
|
||||
}
|
||||
}
|
||||
onWheel: wheel => {
|
||||
root.wheel(wheel.angleDelta.y);
|
||||
wheel.accepted = false;
|
||||
if (root.allowScroll) {
|
||||
root.wheel(wheel.angleDelta.y);
|
||||
wheel.accepted = false;
|
||||
} else {
|
||||
wheel.accepted = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user