Created
February 17, 2020 04:42
-
-
Save gustav1105/dfa208ff544f87990212ce637b500236 to your computer and use it in GitHub Desktop.
visible-selected-rectangle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
React.useEffect(() => { | |
if (getVisibleSelectionRect(window) !== null) { | |
setSelectionRect(getVisibleSelectionRect(window)); | |
} | |
}, [editorState, setSelectionRect]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment