Initial InputEvent handling. Clickable "Wrap" text label.
This commit is contained in:
@@ -58,6 +58,9 @@ func run(w *app.Window) error {
|
||||
mu.Lock()
|
||||
currentElems := elems
|
||||
renderer.Draw(gtx, currentElems)
|
||||
if events := renderer.CheckGestures(e.Source); len(events) > 0 {
|
||||
logic.InputChan() <- events
|
||||
}
|
||||
e.Frame(&ops)
|
||||
mu.Unlock()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user