diff --git a/packages/vue3-pixi/src/components/application/index.ts b/packages/vue3-pixi/src/components/application/index.ts index c0e76981..e038fb50 100644 --- a/packages/vue3-pixi/src/components/application/index.ts +++ b/packages/vue3-pixi/src/components/application/index.ts @@ -35,6 +35,7 @@ export const Application = defineComponent({ height: Number, resolution: Number, resizeTo: Object as PropType, + transferControlToOffscreen: Boolean, }, setup(props, { slots, expose }) { const { appContext } = getCurrentInstance()! @@ -56,6 +57,9 @@ export const Application = defineComponent({ stencil: props.stencil, }) + if (props.transferControlToOffscreen) + canvas.value?.transferControlToOffscreen() + if (!context) warn('could not crate webgl context')