mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-01 22:09:55 +00:00
Fix group order unexpectedly reversing (#242)
This commit is contained in:
@@ -848,8 +848,8 @@ export class LGraph {
|
||||
* @param y The y coordinate in canvas space
|
||||
* @return The group or null
|
||||
*/
|
||||
getGroupOnPos(x: number, y: number, { margin = 2 } = {}) {
|
||||
return this._groups.reverse().find(g => g.isPointInside(x, y, margin, /* skip_title */ true))
|
||||
getGroupOnPos(x: number, y: number, { margin = 2 } = {}): LGraphGroup | undefined {
|
||||
return this._groups.toReversed().find(g => g.isPointInside(x, y, margin, true))
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"target": "ES2022",
|
||||
"useDefineForClassFields": true,
|
||||
"module": "ESNext",
|
||||
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
||||
"lib": ["ES2023", "DOM", "DOM.Iterable"],
|
||||
"skipLibCheck": true,
|
||||
"sourceMap": true,
|
||||
"esModuleInterop": true,
|
||||
|
||||
Reference in New Issue
Block a user