Revert "fix: v3.26.168 空格平移收尾也走隐藏两帧重绘(进一步消掉残影)"
This reverts commit 82c93bddea.
This commit is contained in:
1 parent
82c93bddea
commit
2e7f01838e
5 files changed
+5
-19
No files matched your search
@@ -7463,22 +7463,8 @@ const tbCenterSeed = (type, refs) => {
|
||||
if (!host) return
|
||||
try { host.classList.add('iwb-edges-off') } catch (e0) { /* ignore */ }
|
||||
refs.edgesHitOff = true
|
||||
const cv = host.querySelector ? host.querySelector('.iwb-edge-canvas') : null
|
||||
// v3.26.168:空格平移收尾同样走「隐藏两帧再显示」,否则旧合成位图会留一点残影
|
||||
if (cv) cv.style.visibility = 'hidden'
|
||||
setTimeout(() => { try { refs.edgesHitOff = false; host.classList.remove('iwb-edges-off') } catch (e1) { /* ignore */ } }, 1500)
|
||||
flush()
|
||||
requestAnimationFrame(() => {
|
||||
flush()
|
||||
requestAnimationFrame(() => {
|
||||
flush()
|
||||
if (cv) cv.style.visibility = ''
|
||||
})
|
||||
})
|
||||
setTimeout(() => {
|
||||
try { if (cv) cv.style.visibility = '' } catch (e1) { /* ignore */ }
|
||||
refs.edgesHitOff = false
|
||||
try { host.classList.remove('iwb-edges-off') } catch (e2) { /* ignore */ }
|
||||
}, 400)
|
||||
}
|
||||
const onUp = () => {
|
||||
// 只处理「结束平移」的那次 pointerup:refs.pan 在捕获阶段仍为真;
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "image-workbench-web",
|
||||
"private": true,
|
||||
"version": "3.26.168",
|
||||
"version": "3.26.167",
|
||||
"description": "Browser-based node canvas image workbench",
|
||||
"scripts": {
|
||||
"build": "node scripts/build.js && node scripts/copy-plugins.js",
|
||||
|
||||
Generated
+1
-1
@@ -2014,7 +2014,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "image-workbench"
|
||||
version = "3.26.167"
|
||||
version = "3.26.166"
|
||||
dependencies = [
|
||||
"arboard",
|
||||
"base64 0.22.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "image-workbench"
|
||||
version = "3.26.168"
|
||||
version = "3.26.167"
|
||||
description = "无限画布 · 生图工作台桌面版"
|
||||
authors = ["malongan"]
|
||||
license = ""
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
||||
"productName": "image-workbench",
|
||||
"version": "3.26.168",
|
||||
"version": "3.26.167",
|
||||
"identifier": "com.malongan.imageworkbench",
|
||||
"build": {
|
||||
"frontendDist": "../dist",
|
||||
|
||||
Reference in new issue
Block a user