Use applet geometry for panel scroll margins
This commit is contained in:
@@ -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