feat(tracker): wrap cursor in the song instead of clamping it

Closes #49
This commit is contained in:
vsariola 2021-03-04 11:16:42 +02:00
parent 0f942f73d9
commit 079d5a9ef1

View File

@ -724,8 +724,8 @@ func (m *Model) ParamIndex() int {
}
func (m *Model) clampPositions() {
m.cursor = m.cursor.Clamp(m.song.Score)
m.selectionCorner = m.selectionCorner.Clamp(m.song.Score)
m.cursor = m.cursor.Wrap(m.song.Score)
m.selectionCorner = m.selectionCorner.Wrap(m.song.Score)
if !m.Track().Effect {
m.lowNibble = false
}