ui/app: (wasm) don't focus input field on mouse down or touch start

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-05-13 21:30:26 +02:00
parent 32c525f7fd
commit 3c9c38947d
-2
View File
@@ -109,7 +109,6 @@ func (w *window) addEventListeners() {
return nil
})
w.addEventListener(w.cnv, "mousedown", func(this js.Value, args []js.Value) interface{} {
w.focus()
w.pointerEvent(pointer.Press, 0, 0, args[0])
return nil
})
@@ -133,7 +132,6 @@ func (w *window) addEventListeners() {
return nil
})
w.addEventListener(w.cnv, "touchstart", func(this js.Value, args []js.Value) interface{} {
w.focus()
w.touchEvent(pointer.Press, args[0])
return nil
})