Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Jan 2, 2025
1 parent 6f4e282 commit 2d05162
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/types/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ export interface IDeltaPosition {
deltaY: number
}

/** Workaround for Firefox returning 0 on offsetX/Y props */
/**
* Workaround for Firefox returning 0 on offsetX/Y props
* See https://github.com/Comfy-Org/litegraph.js/issues/403 for details
*/
export interface IOffsetWorkaround {
/** See {@link MouseEvent.offsetX}. This workaround is required (2024-12-31) to support Firefox, which always returns 0 */
safeOffsetX: number
Expand Down

0 comments on commit 2d05162

Please sign in to comment.