Skip to content

Commit

Permalink
feat(controls): Set default fullscreen state
Browse files Browse the repository at this point in the history
  • Loading branch information
jstoffan committed Nov 7, 2020
1 parent 26249c6 commit 99e13f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/viewers/controls/hooks/useFullscreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import fullscreen from '../../../Fullscreen';

export default function useFullscreen(): boolean {
const [isFullscreen, setFullscreen] = React.useState(false);
const [isFullscreen, setFullscreen] = React.useState(fullscreen.isFullscreen());

React.useEffect(() => {
const handleFullscreenEnter = (): void => setFullscreen(true);
Expand Down

0 comments on commit 99e13f1

Please sign in to comment.