mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-27 15:02:50 -05:00
feat: Dock overflow & New setting options
This commit is contained in:
@@ -115,9 +115,20 @@ Item {
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
enabled: true
|
||||
preventStealing: true
|
||||
// Prevent stealing during drag operations
|
||||
// Also prevent stealing when NOT in scroll mode (original behavior)
|
||||
// Only allow Flickable to steal when scrollable AND not dragging
|
||||
preventStealing: dragging || longPressing || !(dockApps && dockApps.canScroll)
|
||||
cursorShape: longPressing ? Qt.DragMoveCursor : Qt.PointingHandCursor
|
||||
acceptedButtons: Qt.LeftButton
|
||||
onWheel: (wheel) => {
|
||||
// Only handle wheel if we're NOT in scrollable mode
|
||||
if (dockApps && dockApps.canScroll) {
|
||||
wheel.accepted = false // Allow event to propagate to Flickable
|
||||
} else {
|
||||
wheel.accepted = true // Consume event (no scrolling needed)
|
||||
}
|
||||
}
|
||||
onPressed: mouse => {
|
||||
if (mouse.button === Qt.LeftButton) {
|
||||
dragStartPos = Qt.point(mouse.x, mouse.y);
|
||||
|
||||
Reference in New Issue
Block a user