mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
internal/ui: bug fix: checking fullscreen on Safari was wrong
This commit is contained in:
parent
a69be34001
commit
fcb7df0a59
@ -129,7 +129,7 @@ func (u *userInterfaceImpl) SetFullscreen(fullscreen bool) {
|
||||
if !document.Truthy() {
|
||||
return
|
||||
}
|
||||
if fullscreen == document.Get("fullscreenElement").Truthy() {
|
||||
if fullscreen == document.Get("fullscreenElement").Truthy() || fullscreen == document.Get("webkitFullscreenElement").Truthy() {
|
||||
return
|
||||
}
|
||||
if fullscreen {
|
||||
|
Loading…
Reference in New Issue
Block a user