Use applet geometry for panel scroll margins
This commit is contained in:
1 parent
f5988605c8
commit
787231cb03
8 files changed
+177
-22
No files matched your search
@@ -27,7 +27,9 @@ PlasmoidItem {
|
||||
PanelSettings { id: settings }
|
||||
PanelController {
|
||||
active: root.panelLayout !== null && !(Plasmoid.containment.corona?.editMode ?? false)
|
||||
locateArea: (x, y) => Areas.areaAt(root.panelLayout, x, y)
|
||||
locateArea: (x, y, scrolling) => scrolling
|
||||
? Areas.scrollAreaAt(root.panelLayout, x, y, Plasmoid.formFactor === PlasmaCore.Types.Vertical)
|
||||
: Areas.areaAt(root.panelLayout, x, y)
|
||||
scrollActions: ({
|
||||
empty: settings.values.emptyAction,
|
||||
tasks: settings.values.tasksAction,
|
||||
|
||||
Reference in new issue
Block a user