mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
5487dd9ea8
commit
865523048d
@ -325,7 +325,7 @@ func (i *Input) setMouseCursorFromEvent(e js.Value) {
|
||||
func (i *Input) updateTouches(e js.Value) {
|
||||
j := e.Get("targetTouches")
|
||||
ts := map[int]pos{}
|
||||
for i := 0; i < len(ts); i++ {
|
||||
for i := 0; i < j.Length(); i++ {
|
||||
jj := j.Call("item", i)
|
||||
id := jj.Get("identifier").Int()
|
||||
ts[id] = pos{
|
||||
|
Loading…
Reference in New Issue
Block a user