From 5bd9e925fd805be672f57ddb5bb64eefb785427a Mon Sep 17 00:00:00 2001 From: qiqi Date: Tue, 1 Dec 2026 12:46:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20v3.26.160=20=E5=B9=B3=E7=A7=BB=E8=A3=81?= =?UTF-8?q?=E5=89=AA=E7=AA=97=E5=8F=A3=E8=BE=B9=E8=B7=9D=201.5=20=E5=B1=8F?= =?UTF-8?q?=E3=80=81=E6=9B=B4=E6=96=B0=E6=AD=A5=E9=95=BF=201/3=20=E5=B1=8F?= =?UTF-8?q?=EF=BC=88=E4=BF=AE=E8=8A=82=E7=82=B9=E5=9C=A8=E8=A7=86=E9=87=8E?= =?UTF-8?q?=E5=86=85=E7=AA=81=E7=84=B6=E5=87=BA=E7=8E=B0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 6 +++--- package.json | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app.js b/app.js index 4d284dc..94c5184 100644 --- a/app.js +++ b/app.js @@ -7420,8 +7420,8 @@ const tbCenterSeed = (type, refs) => { // v3.26.156:平移窗口每跨 1/2 屏更新一次(此时才触发一次 React 渲染,代价可控) if (!refs.pan || panMountAll) { refs.panCullAt = null } else { const at = refs.panCullAt - const halfW = Math.max(320, (canvasSize.w || 800) * 0.5) - const halfH = Math.max(240, (canvasSize.h || 600) * 0.5) + const halfW = Math.max(220, (canvasSize.w || 800) * 0.34) + const halfH = Math.max(160, (canvasSize.h || 600) * 0.34) if (!at || Math.abs(x - at.x) > halfW || Math.abs(y - at.y) > halfH) { refs.panCullAt = { x: x, y: y } try { setPanCull({ x: x, y: y, scale: scale }) } catch (e) { /* ignore */ } @@ -7559,7 +7559,7 @@ const tbCenterSeed = (type, refs) => { // 窗口额外放 0.7 屏边距,保证两次更新之间不会露白。 const navView = (refs.pan && panCull && !panMountAll) ? panCull : viewport const cullRects = React.useMemo(() => { - const extra = (refs.pan && !panMountAll) ? (Math.max(canvasSize.w || 0, canvasSize.h || 0) / (navView.scale || 1)) * 0.7 : 0 + const extra = (refs.pan && !panMountAll) ? (Math.max(canvasSize.w || 0, canvasSize.h || 0) / (navView.scale || 1)) * 1.5 : 0 return CanvasGeometry.cullRectsOf(canvasSize, navView, extra) }, [canvasSize.w, canvasSize.h, navView.x, navView.y, navView.scale, panCull, panMountAll]) const nodeVisible = (n) => CanvasGeometry.nodeVisibleIn(n, cullRects, { drag: refs.drag, resize: refs.resize, sel: sel, pan: !!refs.pan, mountAll: panMountAll, widthOf: nodeWidth, heightOf: hOf }) diff --git a/package.json b/package.json index 456bfaf..d2f7afe 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "image-workbench-web", "private": true, - "version": "3.26.159", + "version": "3.26.160", "description": "Browser-based node canvas image workbench", "scripts": { "build": "node scripts/build.js && node scripts/copy-plugins.js", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index f6cd2dc..bc01ec0 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -2014,7 +2014,7 @@ dependencies = [ [[package]] name = "image-workbench" -version = "3.26.158" +version = "3.26.160" dependencies = [ "arboard", "base64 0.22.1", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 295406f..f70659b 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "image-workbench" -version = "3.26.159" +version = "3.26.160" description = "无限画布 · 生图工作台桌面版" authors = ["malongan"] license = "" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index a967b20..21879e1 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "../node_modules/@tauri-apps/cli/config.schema.json", "productName": "image-workbench", - "version": "3.26.159", + "version": "3.26.160", "identifier": "com.malongan.imageworkbench", "build": { "frontendDist": "../dist",