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",