Skip to content

Commit

Permalink
Merge pull request #398 from d-i-t-a/develop
Browse files Browse the repository at this point in the history
V2.1.2
  • Loading branch information
aferditamuriqi authored Nov 7, 2022
2 parents ec73f65 + bdbeeff commit 7a3ea49
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@d-i-t-a/reader",
"version": "2.1.1",
"version": "2.1.2",
"description": "A viewer application for EPUB files.",
"repository": "https://github.com/d-i-t-a/R2D2BC",
"license": "Apache-2.0",
Expand Down
4 changes: 4 additions & 0 deletions src/modules/highlight/TextHighlighter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,8 @@ export class TextHighlighter {

el.addEventListener("mouseup", this.toolboxShowDelayed.bind(this));
el.addEventListener("touchend", this.toolboxShowDelayed.bind(this));
doc.addEventListener("mouseup", this.toolboxShowDelayed.bind(this));
doc.addEventListener("touchend", this.toolboxShowDelayed.bind(this));
// doc.addEventListener("selectstart", this.toolboxShowDelayed.bind(this));

if (!hasEventListener) {
Expand Down Expand Up @@ -689,6 +691,8 @@ export class TextHighlighter {

el.removeEventListener("mouseup", this.toolboxShowDelayed.bind(this));
el.removeEventListener("touchend", this.toolboxShowDelayed.bind(this));
doc.removeEventListener("mouseup", this.toolboxShowDelayed.bind(this));
doc.removeEventListener("touchend", this.toolboxShowDelayed.bind(this));
// doc.removeEventListener("selectstart", this.toolboxShowDelayed.bind(this));

window.removeEventListener("resize", this.toolboxPlacement.bind(this));
Expand Down

0 comments on commit 7a3ea49

Please sign in to comment.