fix: v3.26.164 只在结束平移的 pointerup 上重绘边线(修 163 误用旧视口导致连线错位残留)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 58s

This commit is contained in:
qiqi committed 2026-12-01 14:26:42 +08:00
1 parent 0617eb7b14
commit 29db0024bf
5 files changed
+11 -5

No files matched your search

+7 -1
View File
@@ -7454,7 +7454,13 @@ const tbCenterSeed = (type, refs) => {
try { if (typeof refs.edgeCanvasDraw === 'function') refs.edgeCanvasDraw(vp.x, vp.y, vp.scale) } catch (e) { /* ignore */ }
try { CanvasGeometry.applyEdgeLayerDom(el, canvasSize, vp.x, vp.y, vp.scale) } catch (e2) { /* ignore */ }
}
const onUp = () => { flush(); requestAnimationFrame(flush) }
const onUp = () => {
// 只处理「结束平移」的那次 pointerup:refs.pan 在捕获阶段仍为真;
// 普通点击若也重绘,会用上一次平移的 lastViewport 把边线画到旧位置。
if (!refs.pan) return
flush()
requestAnimationFrame(flush)
}
window.addEventListener('pointerup', onUp, true)
window.addEventListener('pointercancel', onUp, true)
return () => {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "image-workbench-web",
"private": true,
"version": "3.26.163",
"version": "3.26.164",
"description": "Browser-based node canvas image workbench",
"scripts": {
"build": "node scripts/build.js && node scripts/copy-plugins.js",
+1 -1
View File
@@ -2014,7 +2014,7 @@ dependencies = [
[[package]]
name = "image-workbench"
version = "3.26.162"
version = "3.26.163"
dependencies = [
"arboard",
"base64 0.22.1",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "image-workbench"
version = "3.26.163"
version = "3.26.164"
description = "无限画布 · 生图工作台桌面版"
authors = ["malongan"]
license = ""
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "image-workbench",
"version": "3.26.163",
"version": "3.26.164",
"identifier": "com.malongan.imageworkbench",
"build": {
"frontendDist": "../dist",