Skip to content

Commit

Permalink
Fix TS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vassbo authored Oct 11, 2024
1 parent db5c44b commit 553c3e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/electron/output/helpers/OutputLifecycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,15 @@ export class OutputLifecycle {
window.setTitle(name || "Output")
})

// @ts-ignore
window.on("move", (e: any) => {
if (!OutputHelper.Bounds.moveEnabled || OutputHelper.Bounds.updatingBounds) return e.preventDefault()

let bounds = window.getBounds()
toApp(OUTPUT, { channel: "MOVE", data: { id, bounds } })
})

// @ts-ignore
window.on("resize", (e: any) => {
if (OutputHelper.Bounds.moveEnabled || OutputHelper.Bounds.updatingBounds) return e.preventDefault()

Expand Down

0 comments on commit 553c3e7

Please sign in to comment.