forked from Shinonome/dots-hyprland
background parallax: make half groups really half group
This commit is contained in:
@@ -141,7 +141,7 @@ Scope {
|
|||||||
property real value // 0 to 1, for offset
|
property real value // 0 to 1, for offset
|
||||||
value: {
|
value: {
|
||||||
// Range = half-groups that workspaces span on
|
// Range = half-groups that workspaces span on
|
||||||
const chunkSize = 3;
|
const chunkSize = 5;
|
||||||
const lower = Math.floor(bgRoot.firstWorkspaceId / chunkSize) * chunkSize;
|
const lower = Math.floor(bgRoot.firstWorkspaceId / chunkSize) * chunkSize;
|
||||||
const upper = Math.ceil(bgRoot.lastWorkspaceId / chunkSize) * chunkSize;
|
const upper = Math.ceil(bgRoot.lastWorkspaceId / chunkSize) * chunkSize;
|
||||||
const range = upper - lower;
|
const range = upper - lower;
|
||||||
|
|||||||
Reference in New Issue
Block a user