From d4661e7f0473de709cf7c89534fa0ec921624197 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Wed, 16 Sep 2026 17:13:24 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20pin=20foliate-js=2094bb384=20=E2=80=94?= =?UTF-8?q?=20PDF=20selection=20drags=20no=20longer=20blank=20the=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The fx renderer's gesture classifier only checked whether the touch started on a .textLayer span; Chromium's long-press selects the nearest word even when the finger landed between spans, so the classifier saw a non-selectable target and classified the drag as swipe/pan — preventDefault on the iframe's touchmove then cancelled the native selection extension mid-drag and could blank the PDF canvas. If any frame already has a non-collapsed selection, the drag is now classified as native. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d950979..736b19c 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "dev": "npm run build:ts:dev && npm run build:css" }, "dependencies": { - "@bookhoard/foliate-js": "git+https://git.linuxhg.com/Bookhoard/foliate-js.git#8a20399", + "@bookhoard/foliate-js": "git+https://git.linuxhg.com/Bookhoard/foliate-js.git#94bb384", "alpinejs": "^3.15.8", "chart.js": "^4.5.1", "highlight.js": "^11.11.1",