mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -04:00
fix(tracker): when instrument panel is clicked, only change EditMode when instruments
Changing to always EditUnits was causing unnecessarily going back from EditParameters.
This commit is contained in:
parent
e93190892b
commit
0f136d544c
@ -22,7 +22,7 @@ func (t *Tracker) layoutInstruments(gtx C) D {
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
if e.Type == pointer.Press {
|
||||
if e.Type == pointer.Press && (t.EditMode != EditUnits && t.EditMode != EditParameters) {
|
||||
t.EditMode = EditUnits
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user