mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
Fixed click addEventListener
This commit is contained in:
parent
ee2264b064
commit
fca44a9644
1 changed files with 2 additions and 2 deletions
|
@ -768,7 +768,7 @@ class Contents {
|
|||
let m = new Highlight(range, "epubjs-hl", data, {'fill': 'yellow', 'fill-opacity': '0.3', 'mix-blend-mode': 'multiply'});
|
||||
let h = this.pane.addMark(m);
|
||||
|
||||
h.addEventListener("click", () => {
|
||||
h.element.addEventListener("click", () => {
|
||||
this.emit("markClicked", cfiRange, data);
|
||||
});
|
||||
|
||||
|
@ -790,7 +790,7 @@ class Contents {
|
|||
let m = new Underline(range, "epubjs-ul", data, {'stroke': 'black', 'stroke-opacity': '0.3', 'mix-blend-mode': 'multiply'});
|
||||
let h = this.pane.addMark(m);
|
||||
|
||||
h.addEventListener("click", () => {
|
||||
h.element.addEventListener("click", () => {
|
||||
this.emit("markClicked", cfiRange, data);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue