fix screen bounds not updating (#2022)
There are a lot of cases (eg when interacting with the ui) where the editor loses focus. This check was preventing us from updating the viewport screen bounds when appropriate. This function is throttled and pretty cheap anyway (if the viewport is equal its a no-op) so let's just remove the condition ### Change Type - [x] `patch` — Bug fix
This commit is contained in:
parent
647977ceec
commit
a9236bcbb0
1 changed files with 1 additions and 3 deletions
|
@ -8,9 +8,7 @@ export function useScreenBounds() {
|
|||
useLayoutEffect(() => {
|
||||
const updateBounds = throttle(
|
||||
() => {
|
||||
if (editor.instanceState.isFocused) {
|
||||
editor.updateViewportScreenBounds()
|
||||
}
|
||||
},
|
||||
200,
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue