Handle requestPointerLock error cases in iframes P-199 (#272)
See https://linear.app/theatre/issue/P-199/dont-use-pointer-lock-when-in-an-iframe
This commit is contained in:
parent
8bd37a28d6
commit
2ef9d5e346
2 changed files with 34 additions and 3 deletions
11
packages/playground/src/tests/in-iframe/index.tsx
Normal file
11
packages/playground/src/tests/in-iframe/index.tsx
Normal file
|
@ -0,0 +1,11 @@
|
|||
import React from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
|
||||
ReactDOM.render(
|
||||
<iframe
|
||||
src="/shared/dom"
|
||||
style={{width: '600px', height: '600px'}}
|
||||
sandbox="allow-scripts allow-same-origin"
|
||||
/>,
|
||||
document.getElementById('root'),
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue