clip settings at bar bounds

This commit is contained in:
2026-07-07 18:47:48 +02:00
parent 2db6a57c0b
commit ffefd3e202
5 changed files with 6 additions and 20 deletions
@@ -267,8 +267,6 @@ Item {
function restoreFromData() {
let data = Wallpapers.getCrop(wrapper.currentScreen.name);
console.log(data.x, data.y);
if (data && (Math.abs(data.x) > 0.001 || Math.abs(data.y) > 0.001 || Math.abs(data.width - 1.0) > 0.001 || Math.abs(data.height - 1.0) > 0.001)) {
zoom = data.zoom > 0 ? data.zoom : 1.0;
x = imageX + (data.x * scaledImg.paintedWidth);