mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-05 21:20:12 +00:00
bug fix
This commit is contained in:
@@ -554,7 +554,6 @@ test.describe('Canvas Interaction', () => {
|
||||
|
||||
// Release space
|
||||
await comfyPage.page.keyboard.up('Space')
|
||||
await comfyPage.nextFrame()
|
||||
expect(await getCursorStyle()).toBe('default')
|
||||
|
||||
// Move mouse - cursor should remain default
|
||||
|
||||
@@ -3674,16 +3674,11 @@ export class LGraphCanvas
|
||||
}
|
||||
} else if (e.type == 'keyup') {
|
||||
if (e.key === ' ') {
|
||||
// space - only revert if we had temporarily switched to pan mode
|
||||
if (
|
||||
LiteGraph.canvasNavigationMode === 'standard' &&
|
||||
this._previously_dragging_canvas !== null
|
||||
) {
|
||||
this.read_only = false
|
||||
this.dragging_canvas =
|
||||
(this._previously_dragging_canvas ?? false) && this.pointer.isDown
|
||||
this._previously_dragging_canvas = null
|
||||
}
|
||||
// space
|
||||
this.read_only = false
|
||||
this.dragging_canvas =
|
||||
(this._previously_dragging_canvas ?? false) && this.pointer.isDown
|
||||
this._previously_dragging_canvas = null
|
||||
}
|
||||
|
||||
for (const node of Object.values(this.selected_nodes)) {
|
||||
|
||||
Reference in New Issue
Block a user