Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions panels/dock/package/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ Window {
id: dockContainer
width: dock.useColumnLayout ? dock.dockSize : parent.width
height: dock.useColumnLayout ? parent.height : dock.dockSize
property bool touchLongPressed: false
anchors {
left: parent.left
top: parent.top
Expand Down Expand Up @@ -437,6 +438,10 @@ Window {
acceptedButtons: Qt.NoButton
acceptedDevices: PointerDevice.TouchScreen
onTapped: function(eventPoint, button) {
if (dockContainer.touchLongPressed) {
dockContainer.touchLongPressed = false
return
}
let lastActive = MenuHelper.activeMenu
MenuHelper.closeCurrent()
dockMenuLoader.active = true
Expand All @@ -445,13 +450,17 @@ Window {
viewDeactivated()
}
onLongPressed: {
dockContainer.touchLongPressed = true
let lastActive = MenuHelper.activeMenu
MenuHelper.closeCurrent()
dockMenuLoader.active = true
if (lastActive !== dockMenuLoader.item) {
requestShowDockMenu()
}
}
onCanceled: {
dockContainer.touchLongPressed = false
}
}

HoverHandler {
Expand Down
Loading