Skip to content

Commit

Permalink
small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
KingSora committed Apr 12, 2024
1 parent 3fc6823 commit 80590c6
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -275,9 +275,7 @@ export const createStructureSetupElements = (

// focus viewport if previously focused element was target, otherwise focus previously focused element
focusElm(
!viewportIsTarget &&
initActiveElm === targetElement &&
(!docWnd || (docWnd && docWnd.top === docWnd))
!viewportIsTarget && initActiveElm === targetElement && docWnd.top === docWnd
? _viewport
: initActiveElm
);
Expand Down

0 comments on commit 80590c6

Please sign in to comment.