mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48: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() {
|
if !document.Truthy() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if fullscreen == document.Get("fullscreenElement").Truthy() {
|
if fullscreen == document.Get("fullscreenElement").Truthy() || fullscreen == document.Get("webkitFullscreenElement").Truthy() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if fullscreen {
|
if fullscreen {
|
||||||
|
Loading…
Reference in New Issue
Block a user