notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 5630f93b71b85d59721ff4a345a1dea16150d63a
parent 9e5048d4f2c1f98f0c0a91892a82c66cad115042
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 24 May 2024 13:43:31 -0700

debug: add some debug logs for keyboard note selection

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/timeline.rs | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/timeline.rs b/src/timeline.rs @@ -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; }