fix(desktop): disable touch flicking

main
reionwong 3 weeks ago
parent eac1aafb1d
commit adeeb512f8

@ -50,7 +50,7 @@ FishUI.Window {
DragHandler {
target: null
acceptedDevices: PointerDevice.GenericPointer
acceptedDevices: PointerDevice.Mouse | PointerDevice.TouchPad
grabPermissions: PointerHandler.CanTakeOverFromItems | PointerHandler.CanTakeOverFromHandlersOfDifferentType | PointerHandler.ApprovesTakeOverByAnything
onActiveChanged: if (active) { control.helper.startSystemMove(control) }
}

@ -273,6 +273,10 @@ GridView {
}
clip: true
// The desktop uses a GridView for layout, but dragging its surface must
// select icons instead of flicking the desktop like a touch interface.
// WheelHandler remains responsible for wheel and touchpad scrolling.
interactive: !isDesktopView
currentIndex: -1
ScrollBar.vertical: ScrollBar { }
@ -520,7 +524,7 @@ GridView {
control.rubberBand.close()
control.rubberBand = null
control.interactive = true
control.interactive = !control.isDesktopView
control.cachedRectangleSelection = null
dirModel.unpinSelection()
}
@ -666,7 +670,7 @@ GridView {
width = 0
height = 0
visible = false
control.interactive = true
control.interactive = !control.isDesktopView
}
}

Loading…
Cancel
Save