Skip to content

Commit 0c4339f

Browse files
authored
[TS] Update callbacks using CanvasMouseEvent #1104 (#4358)
1 parent 35556eb commit 0c4339f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/extensions/core/maskeditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4854,7 +4854,7 @@ class KeyboardManager {
48544854
private maskEditor: MaskEditorDialog
48554855
private messageBroker: MessageBroker
48564856

4857-
// Binded functions, for use in addListeners and removeListeners
4857+
// Bound functions, for use in addListeners and removeListeners
48584858
private handleKeyDownBound = this.handleKeyDown.bind(this)
48594859
private handleKeyUpBound = this.handleKeyUp.bind(this)
48604860
private clearKeysBound = this.clearKeys.bind(this)

src/extensions/core/widgetInputs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type {
66
LLink,
77
Vector2
88
} from '@comfyorg/litegraph'
9-
import type { CanvasMouseEvent } from '@comfyorg/litegraph/dist/types/events'
9+
import type { CanvasPointerEvent } from '@comfyorg/litegraph/dist/types/events'
1010
import type { IBaseWidget } from '@comfyorg/litegraph/dist/types/widgets'
1111

1212
import {
@@ -78,7 +78,7 @@ export class PrimitiveNode extends LGraphNode {
7878
app.canvas,
7979
node,
8080
app.canvas.graph_mouse,
81-
{} as CanvasMouseEvent
81+
{} as CanvasPointerEvent
8282
)
8383
}
8484
}

0 commit comments

Comments
 (0)