mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
vertical scroll sequencer, pt.3
This commit is contained in:
parent
1ce5ab6f27
commit
d1c892a235
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ impl Content for PhraseEditor<Tui> {
|
||||||
self.height.store(h, Ordering::Relaxed);
|
self.height.store(h, Ordering::Relaxed);
|
||||||
let mut axis = self.note_axis.write().unwrap();
|
let mut axis = self.note_axis.write().unwrap();
|
||||||
if let Some(point) = axis.point {
|
if let Some(point) = axis.point {
|
||||||
if point.saturating_sub(axis.start) / 2 > h {
|
if point.saturating_sub(axis.start) >= (h * 2).saturating_sub(1) {
|
||||||
axis.start += 1;
|
axis.start += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue