debug: add some debug logs for keyboard note selection
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -11,7 +11,7 @@ use std::cell::RefCell;
|
||||
use std::cmp::Ordering;
|
||||
use std::rc::Rc;
|
||||
|
||||
use log::warn;
|
||||
use log::{debug, warn};
|
||||
|
||||
#[derive(Debug, Eq, PartialEq, Copy, Clone)]
|
||||
pub struct NoteRef {
|
||||
@@ -97,6 +97,7 @@ impl TimelineView {
|
||||
}
|
||||
|
||||
pub fn select_down(&mut self) {
|
||||
debug!("select_down {}", self.selection + 1);
|
||||
if self.selection + 1 > self.notes.len() as i32 {
|
||||
return;
|
||||
}
|
||||
@@ -105,6 +106,7 @@ impl TimelineView {
|
||||
}
|
||||
|
||||
pub fn select_up(&mut self) {
|
||||
debug!("select_up {}", self.selection - 1);
|
||||
if self.selection - 1 < 0 {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user