Skip to content

Commit

Permalink
[@mantine/hooks] use-full-screen: Fix hook not working on iOS (#3327)
Browse files Browse the repository at this point in the history
add `webkitEnterFullscreen` method on `enterFullScreen` function to support `ios devices`;
  • Loading branch information
mikoloism committed Jan 17, 2023
1 parent ff07eba commit 46dbaa3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mantine-hooks/src/use-fullscreen/use-fullscreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ async function enterFullScreen(element: HTMLElement) {
return (
_element.requestFullscreen?.() ||
_element.msRequestFullscreen?.() ||
_element.webkitEnterFullscreen?.() ||
_element.webkitRequestFullscreen?.() ||
_element.mozRequestFullscreen?.()
);
Expand Down

0 comments on commit 46dbaa3

Please sign in to comment.