Skip to content

Commit

Permalink
Merge pull request #791 from d-i-t-a/bugfix/prevent-highlighter-click…
Browse files Browse the repository at this point in the history
…through

prevent highlighter clickthrough
  • Loading branch information
aferditamuriqi authored Feb 23, 2024
2 parents 20d6eb4 + ee73eab commit 475a677
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 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.4.6",
"version": "2.4.7",
"description": "A viewer application for EPUB files.",
"repository": "https://github.com/d-i-t-a/R2D2BC",
"license": "Apache-2.0",
Expand Down
4 changes: 3 additions & 1 deletion src/utils/EventHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ export default class EventHandler {
}
}
} else {
this.onClickThrough(event);
if (!this.navigator.highlighter?.isSelectionMenuOpen) {
this.onClickThrough(event);
}
}
};
}

0 comments on commit 475a677

Please sign in to comment.