examples/textinput: add a comment

This commit is contained in:
Hajime Hoshi 2023-08-02 18:02:42 +09:00
parent c2933b657c
commit af5edf136d

View File

@ -149,6 +149,9 @@ func (t *TextField) Update() {
} }
var processed bool var processed bool
// Text inputting can happen multiple times in one tick (1/60[s] by default).
// Handle all of them.
for { for {
if t.ch == nil { if t.ch == nil {
x, y := t.bounds.Min.X, t.bounds.Min.Y x, y := t.bounds.Min.X, t.bounds.Min.Y