From 4cbbdbf5184fa2d713efed16fef1b4189227f5f3 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 16 Apr 2021 03:14:46 +0900 Subject: [PATCH] internal/uidriver/js: Misspelling --- internal/uidriver/js/ui_js.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/uidriver/js/ui_js.go b/internal/uidriver/js/ui_js.go index 0563a428e..60ef4de06 100644 --- a/internal/uidriver/js/ui_js.go +++ b/internal/uidriver/js/ui_js.go @@ -133,7 +133,7 @@ func (u *UserInterface) SetCursorMode(mode driver.CursorMode) { if u.cursorMode == mode { 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 if u.cursorMode == driver.CursorModeCaptured { document.Call("exitPointerLock") @@ -387,7 +387,7 @@ func init() { if document.Get("pointerLockElement").Truthy() { 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. if theUI.cursorMode == driver.CursorModeCaptured {