mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 06:47:33 +00:00
Fix ctrl-z
This commit is contained in:
@@ -4507,7 +4507,7 @@ LGraphCanvas.prototype.drawBackCanvas = function()
|
||||
//render BG
|
||||
if(this.background_image && this.scale > 0.5)
|
||||
{
|
||||
if (zoom_modify_alpha)
|
||||
if (this.zoom_modify_alpha)
|
||||
ctx.globalAlpha = (1.0 - 0.5 / this.scale) * this.editor_alpha;
|
||||
else
|
||||
ctx.globalAlpha = this.editor_alpha;
|
||||
|
||||
@@ -4505,7 +4505,7 @@ LGraphCanvas.prototype.drawBackCanvas = function()
|
||||
//render BG
|
||||
if(this.background_image && this.scale > 0.5)
|
||||
{
|
||||
if (zoom_modify_alpha)
|
||||
if (this.zoom_modify_alpha)
|
||||
ctx.globalAlpha = (1.0 - 0.5 / this.scale) * this.editor_alpha;
|
||||
else
|
||||
ctx.globalAlpha = this.editor_alpha;
|
||||
|
||||
Reference in New Issue
Block a user