summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-15 13:46:50 -0300
committerGabriel Schneider <[email protected]>2026-09-15 17:24:42 -0300
commit6d7b506c8a380e4dd97f337590ca079d810a360a (patch)
tree71075c8c4383df25c6ecd5140ef75063a897b444 /src/web
parent13d0d107a06d7ac5fb5f8e86c747e54603f51b4e (diff)
downloadpardes-6d7b506c8a380e4dd97f337590ca079d810a360a.tar.gz
pardes-6d7b506c8a380e4dd97f337590ca079d810a360a.zip
Follow embedded PDF links through Look
Diffstat (limited to 'src/web')
-rw-r--r--src/web/app.mjs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/web/app.mjs b/src/web/app.mjs
index be61de89..37d07eb7 100644
--- a/src/web/app.mjs
+++ b/src/web/app.mjs
@@ -41,6 +41,7 @@ export class DomRenderer {
render() {
const count = this.wasm.pardes_frame();
+ this.root.style.cursor = this.wasm.pardes_pointer_shape() === 1 ? "pointer" : "text";
const cols = this.wasm.pardes_frame_cols();
const rows = this.wasm.pardes_frame_rows();
if (count !== cols * rows) throw new Error(`bad frame: ${count} cells for ${cols}x${rows}`);