From c0745f3d41029ea2b6b40e0f2377fd89d19b8456 Mon Sep 17 00:00:00 2001 From: Nikolai Riedel Date: Thu, 22 Jun 2023 15:46:08 +0200 Subject: [PATCH 1/2] Show toolbox on selection change --- src/modules/highlight/TextHighlighter.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/highlight/TextHighlighter.ts b/src/modules/highlight/TextHighlighter.ts index 959e1b95..05f08a28 100644 --- a/src/modules/highlight/TextHighlighter.ts +++ b/src/modules/highlight/TextHighlighter.ts @@ -645,6 +645,7 @@ export class TextHighlighter { window.addEventListener("resize", this.toolboxPlacement.bind(this)); } doc.addEventListener("selectionchange", this.toolboxPlacement.bind(this)); + doc.addEventListener("selectionchange", this.toolboxShowDelayed.bind(this)); el.addEventListener("mousedown", this.toolboxHide.bind(this)); el.addEventListener("touchstart", this.toolboxHide.bind(this)); From 333d0723e8e1c71915bd52de1e7441ed16941234 Mon Sep 17 00:00:00 2001 From: Aferdita Muriqi Date: Sat, 24 Jun 2023 12:28:22 +0200 Subject: [PATCH 2/2] version bump --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 555f8189..2f0e3af8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@d-i-t-a/reader", - "version": "2.3.6", + "version": "2.3.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@d-i-t-a/reader", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@types/pdfjs-dist": "^2.7.4", diff --git a/package.json b/package.json index f809bf0e..27e78f97 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@d-i-t-a/reader", - "version": "2.3.6", + "version": "2.3.7", "description": "A viewer application for EPUB files.", "repository": "https://github.com/d-i-t-a/R2D2BC", "license": "Apache-2.0",