diff --git a/iris/Cargo.lock b/iris/Cargo.lock index d39c8fb..8d959ca 100644 --- a/iris/Cargo.lock +++ b/iris/Cargo.lock @@ -3651,6 +3651,7 @@ dependencies = [ "client-core", "event-model", "iris", + "log", "pulldown-cmark", ] diff --git a/iris/android-app/Cargo.lock b/iris/android-app/Cargo.lock index ccfc1f2..4f1a070 100644 --- a/iris/android-app/Cargo.lock +++ b/iris/android-app/Cargo.lock @@ -3867,6 +3867,7 @@ dependencies = [ "client-core", "event-model", "iris", + "log", "pulldown-cmark", ] diff --git a/iris/transcript-ui/Cargo.toml b/iris/transcript-ui/Cargo.toml index 115e245..fa0d347 100644 --- a/iris/transcript-ui/Cargo.toml +++ b/iris/transcript-ui/Cargo.toml @@ -18,3 +18,9 @@ iris = { path = ".." } client-core = { path = "../../client-core" } event-model = { path = "../../event-model" } pulldown-cmark = { workspace = true } +# Selection has no accessibility label of its own yet (IRIS_TODO.md's +# "Row-level accessibility names"), so a logcat line at +# begin/extend is the smallest way to confirm a real long-press-then-drag +# reached `Selection` on-device (RUST.md's I5 box, "Measurements taken" +# (c)) -- version pinned to match `iris-android-app`'s own dependency. +log = "0.4.28" diff --git a/iris/transcript-ui/src/selection.rs b/iris/transcript-ui/src/selection.rs index c1c91d7..899ffd4 100644 --- a/iris/transcript-ui/src/selection.rs +++ b/iris/transcript-ui/src/selection.rs @@ -189,8 +189,19 @@ impl Selection { match outcome { DragOutcome::Undecided => {} DragOutcome::Pan(dy) => list(ui).scroll(-dy), - DragOutcome::SelectStart => self.begin(ui, key, pos_row, size), - DragOutcome::SelectExtend => self.extend(ui, key, pos_row, size), + DragOutcome::SelectStart => { + // Grep-able on "iris selection" the way the frame report is + // on "iris frame report" -- selection has no accessibility + // label of its own yet, so this is the smallest way to + // confirm a real on-device long-press-then-drag actually + // reached here (RUST.md's I5 box, "Measurements taken" (c)). + log::info!("iris selection: begin at row {key:?}"); + self.begin(ui, key, pos_row, size); + } + DragOutcome::SelectExtend => { + log::info!("iris selection: extend to row {key:?}"); + self.extend(ui, key, pos_row, size); + } } }