mirror of
				https://github.com/vsariola/sointu.git
				synced 2025-10-31 16:05:38 -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:
		| @ -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 | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user