mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -04:00
feat(tracker): wrap cursor in the song instead of clamping it
Closes #49
This commit is contained in:
parent
0f942f73d9
commit
079d5a9ef1
@ -724,8 +724,8 @@ func (m *Model) ParamIndex() int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m *Model) clampPositions() {
|
func (m *Model) clampPositions() {
|
||||||
m.cursor = m.cursor.Clamp(m.song.Score)
|
m.cursor = m.cursor.Wrap(m.song.Score)
|
||||||
m.selectionCorner = m.selectionCorner.Clamp(m.song.Score)
|
m.selectionCorner = m.selectionCorner.Wrap(m.song.Score)
|
||||||
if !m.Track().Effect {
|
if !m.Track().Effect {
|
||||||
m.lowNibble = false
|
m.lowNibble = false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user