1
0
Fork 0
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:
niels 2017-05-02 11:43:46 +02:00
parent ee2264b064
commit fca44a9644

View file

@ -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);
});