From 2ef9d5e346abbeeebd68dc842274b56634cb775a Mon Sep 17 00:00:00 2001 From: Cole Lawrence Date: Wed, 3 Aug 2022 09:55:09 -0400 Subject: [PATCH] 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 --- .../playground/src/tests/in-iframe/index.tsx | 11 ++++++++ theatre/studio/src/uiComponents/useDrag.ts | 26 ++++++++++++++++--- 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 packages/playground/src/tests/in-iframe/index.tsx diff --git a/packages/playground/src/tests/in-iframe/index.tsx b/packages/playground/src/tests/in-iframe/index.tsx new file mode 100644 index 0000000..dbfb621 --- /dev/null +++ b/packages/playground/src/tests/in-iframe/index.tsx @@ -0,0 +1,11 @@ +import React from 'react' +import ReactDOM from 'react-dom' + +ReactDOM.render( +