From 05b64dadc8e130a70bd2d05756f8280f9c08c3dd Mon Sep 17 00:00:00 2001 From: "5684185+vsariola@users.noreply.github.com" <5684185+vsariola@users.noreply.github.com> Date: Sun, 2 Nov 2025 16:20:30 +0200 Subject: [PATCH] fix(tracker/gioui): unit comment editor flashing while cursor moved --- tracker/gioui/instrument_editor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracker/gioui/instrument_editor.go b/tracker/gioui/instrument_editor.go index 1f4206c..08548fc 100644 --- a/tracker/gioui/instrument_editor.go +++ b/tracker/gioui/instrument_editor.go @@ -337,8 +337,8 @@ func (pe *InstrumentEditor) layoutRack(gtx C) D { label.Layout(gtx) return D{Size: image.Pt(rowTitleWidth, cellHeight)} } - cursor := t.Model.Params().Cursor() cell := func(gtx C, x, y int) D { + cursor := t.Model.Params().Cursor() gtx.Constraints = layout.Exact(image.Pt(cellWidth, cellHeight)) point := tracker.Point{X: x, Y: y} if y < 0 || y >= len(pe.Parameters) || x < 0 || x >= len(pe.Parameters[y]) {