fix(tracker/gioui): unit comment editor flashing while cursor moved

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2025-11-02 16:20:30 +02:00
parent 6978dd4afe
commit 05b64dadc8

View File

@ -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]) {