dsh-neotui 0.0.20 → 0.0.21
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/package.json +1 -1
- package/src/views.js +4 -0
package/package.json
CHANGED
package/src/views.js
CHANGED
|
@@ -1331,6 +1331,10 @@ export class ChatView extends Widget {
|
|
|
1331
1331
|
// toggle a block a few lines away from the one the user saw.
|
|
1332
1332
|
this.pressInfo = this.lineMap?.[this.pressY] ?? null;
|
|
1333
1333
|
this.pressCtx = this.pressInfo ? this.#anchorCtx(this.pressInfo) : null;
|
|
1334
|
+
if (process.env.DSH_TUI_DEBUG_CLICK) {
|
|
1335
|
+
const t = this.lines[this.pressY]?.map((g) => g.t).join("") ?? "";
|
|
1336
|
+
this.app.log(`[click-dbg] press screenY=${ev.y} lineIdx=${this.pressY} mark=${JSON.stringify(this.pressInfo)} text="${t.slice(0, 40)}" scrollY=${this.view.scrollY}`);
|
|
1337
|
+
}
|
|
1334
1338
|
return true;
|
|
1335
1339
|
}
|
|
1336
1340
|
if (ev.kind === "drag" && ev.button === 0 && this.pressY !== null) {
|