Match Plasma panel edge areas for clicks and scrolling
This commit is contained in:
@@ -8,6 +8,7 @@ import "areas.js" as Areas
|
||||
|
||||
PlasmoidItem {
|
||||
id: root
|
||||
readonly property Item panelView: Areas.panelViewFor(root)
|
||||
readonly property Item panelLayout: {
|
||||
let item = root.parent;
|
||||
while (item) {
|
||||
@@ -26,10 +27,8 @@ PlasmoidItem {
|
||||
preferredRepresentation: fullRepresentation
|
||||
PanelSettings { id: settings }
|
||||
PanelController {
|
||||
active: root.panelLayout !== null && !(Plasmoid.containment.corona?.editMode ?? false)
|
||||
locateArea: (x, y, scrolling) => scrolling
|
||||
? Areas.scrollAreaAt(root.panelLayout, x, y, Plasmoid.formFactor === PlasmaCore.Types.Vertical)
|
||||
: Areas.areaAt(root.panelLayout, x, y)
|
||||
active: root.panelLayout !== null && root.panelView !== null && !(Plasmoid.containment.corona?.editMode ?? false)
|
||||
locateArea: (x, y) => Areas.areaAt(root.panelLayout, x, y, root.panelView)
|
||||
scrollActions: ({
|
||||
empty: settings.values.emptyAction,
|
||||
tasks: settings.values.tasksAction,
|
||||
|
||||
Reference in New Issue
Block a user