1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Sidebar input helpers.
//!
//! Re-exports `register_input_coordinator_sidebar` and provides lightweight
//! helpers for common input operations (resize, scroll, collapse).
pub use register_input_coordinator_sidebar;
use ;
// ---------------------------------------------------------------------------
// Resize
// ---------------------------------------------------------------------------
/// Clamp a new width and apply it to `state`.
///
/// Used by callers that compute the desired width from drag deltas outside the
/// composite (e.g. chart-app dragging the resize zone).
// ---------------------------------------------------------------------------
// Scroll
// ---------------------------------------------------------------------------
/// Apply a scroll wheel delta to the per-panel scroll state.
///
/// `panel_id` — matches the key used in `state.scroll_per_panel`.
/// `delta` — pixels; positive scrolls down.
/// `content_height` / `viewport_height` — needed to clamp the offset.
// ---------------------------------------------------------------------------
// Collapse
// ---------------------------------------------------------------------------
/// Toggle the sidebar between collapsed and expanded.