fix note cursor length and advancement

This commit is contained in:
🪞👃🪞 2024-10-23 20:31:20 +03:00
parent 98fa0c4c4f
commit 35599c6cde
3 changed files with 17 additions and 14 deletions

View file

@ -127,9 +127,7 @@ impl Handle<Tui> for PhraseEditor<Tui> {
},
key!(KeyCode::Char('a')) => if self.entered {
self.put();
self.time_axis.point = self.time_axis.point.map(|time|{
time + self.note_len / self.time_axis.scale
});
self.time_axis.point = self.time_axis.point.map(|time|{time + self.note_len});
},
key!(KeyCode::Char('s')) => if self.entered {
self.put();