pi-cc-extensions 0.5.0 → 0.5.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.
|
@@ -446,14 +446,16 @@ function handleToolMouseInput(data: string): { consume: true } | undefined {
|
|
|
446
446
|
const packets = parseSgrMousePackets(data);
|
|
447
447
|
if (!packets) return undefined;
|
|
448
448
|
|
|
449
|
+
let consumed = false;
|
|
449
450
|
for (const packet of packets) {
|
|
450
|
-
if (isSgrLeftPress(packet)) {
|
|
451
|
-
|
|
451
|
+
if (isSgrLeftPress(packet) && toggleToolAtMouseClick(toolMouseTui, packet)) {
|
|
452
|
+
consumed = true;
|
|
452
453
|
}
|
|
453
454
|
}
|
|
454
|
-
|
|
455
|
-
//
|
|
456
|
-
|
|
455
|
+
|
|
456
|
+
// Let scrolling, motion, release, and clicks outside tool results reach the
|
|
457
|
+
// normal TUI input chain (including other extensions such as pi-zentui).
|
|
458
|
+
return consumed ? { consume: true } : undefined;
|
|
457
459
|
}
|
|
458
460
|
|
|
459
461
|
function teardownToolMouseInteraction(): void {
|