mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 03:58:55 +01:00
internal/uidriver/js: Misspelling
This commit is contained in:
parent
20705d63a3
commit
4cbbdbf518
@ -133,7 +133,7 @@ func (u *UserInterface) SetCursorMode(mode driver.CursorMode) {
|
|||||||
if u.cursorMode == mode {
|
if u.cursorMode == mode {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Remember the previous cursor mode in the case when the pointer lock exit by pressing ESC.
|
// Remember the previous cursor mode in the case when the pointer lock exits by pressing ESC.
|
||||||
u.cursorPrevMode = u.cursorMode
|
u.cursorPrevMode = u.cursorMode
|
||||||
if u.cursorMode == driver.CursorModeCaptured {
|
if u.cursorMode == driver.CursorModeCaptured {
|
||||||
document.Call("exitPointerLock")
|
document.Call("exitPointerLock")
|
||||||
@ -387,7 +387,7 @@ func init() {
|
|||||||
if document.Get("pointerLockElement").Truthy() {
|
if document.Get("pointerLockElement").Truthy() {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
// Recover the state correctly when exiting from the pointer lock.
|
// Recover the state correctly when the pointer lock exits.
|
||||||
|
|
||||||
// A user can exit the pointer lock by pressing ESC. In this case, sync the cursor mode state.
|
// A user can exit the pointer lock by pressing ESC. In this case, sync the cursor mode state.
|
||||||
if theUI.cursorMode == driver.CursorModeCaptured {
|
if theUI.cursorMode == driver.CursorModeCaptured {
|
||||||
|
Loading…
Reference in New Issue
Block a user