pi-stereo-view 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.1
4
+
5
+ - Mouse wheel over Conversation or its header no longer scrolls Activity when Conversation is too short to scroll.
6
+
3
7
  ## 0.1.0
4
8
 
5
9
  First release.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-stereo-view",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "Keep Pi conversation separate from tool output and agent activity.",
6
6
  "license": "MIT",
package/src/layout.ts CHANGED
@@ -59,6 +59,17 @@ class TranscriptPane extends VStack {
59
59
  ]);
60
60
  }
61
61
 
62
+ override handleMouse(event: TuiMouseEvent): ReturnType<Container["handleMouse"]> {
63
+ if (event.type !== "wheel") return undefined;
64
+ // Native wheel routing gives any unused delta to the primary panel, Activity.
65
+ // Consume it here so the wheel only moves the panel under the pointer.
66
+ this.view.scrollBy(event.wheelDelta ?? 0);
67
+ return { handled: true, target: {
68
+ component: this, originX: event.screenX - event.x, originY: event.screenY - event.y,
69
+ width: event.width, height: event.height,
70
+ } };
71
+ }
72
+
62
73
  override render(width: number): string[] {
63
74
  // Native layout measures height here, then paints the original header and ScrollView.
64
75
  // Empty preview rows avoid composing colored history text in ancestor measurements.