You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a square option to the settings object to customize whether the hook treats windows of equal width and height as portrait, landscape, or neither. The hook currently treats them as portrait.
Options: "portrait", "landscape", "square"
Default: "portrait"
When set to "square", the hook should return { orientation: "square", portrait: false, landscape: false } when the window is square.
The text was updated successfully, but these errors were encountered:
Add a
square
option to the settings object to customize whether the hook treats windows of equal width and height as portrait, landscape, or neither. The hook currently treats them as portrait."portrait"
,"landscape"
,"square"
"portrait"
When set to
"square"
, the hook should return{ orientation: "square", portrait: false, landscape: false }
when the window is square.The text was updated successfully, but these errors were encountered: