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", 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));