[TS] Update callbacks using CanvasMouseEvent #1104 (#4358)

This commit is contained in:
filtered
2025-07-05 11:53:44 -07:00
committed by GitHub
parent 35556eb674
commit 0c4339f652
2 changed files with 3 additions and 3 deletions

View File

@@ -4854,7 +4854,7 @@ class KeyboardManager {
private maskEditor: MaskEditorDialog
private messageBroker: MessageBroker
// Binded functions, for use in addListeners and removeListeners
// Bound functions, for use in addListeners and removeListeners
private handleKeyDownBound = this.handleKeyDown.bind(this)
private handleKeyUpBound = this.handleKeyUp.bind(this)
private clearKeysBound = this.clearKeys.bind(this)

View File

@@ -6,7 +6,7 @@ import type {
LLink,
Vector2
} from '@comfyorg/litegraph'
import type { CanvasMouseEvent } from '@comfyorg/litegraph/dist/types/events'
import type { CanvasPointerEvent } from '@comfyorg/litegraph/dist/types/events'
import type { IBaseWidget } from '@comfyorg/litegraph/dist/types/widgets'
import {
@@ -78,7 +78,7 @@ export class PrimitiveNode extends LGraphNode {
app.canvas,
node,
app.canvas.graph_mouse,
{} as CanvasMouseEvent
{} as CanvasPointerEvent
)
}
}