mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
Focus canvas on start (#64)
This commit is contained in:
parent
ad3f37ae75
commit
795e7c8eb2
@ -129,6 +129,7 @@ func Start(width, height, scale int, title string) (actualScale int, err error)
|
||||
y -= rect.Get("top").Int()
|
||||
currentInput.mouseMove(x/scale, y/scale)
|
||||
})
|
||||
canvas.Call("focus")
|
||||
|
||||
return scale, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user