1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

make rendition to emit mouseover/out event

This commit is contained in:
Do Park 2023-10-28 14:50:55 -07:00
parent 583577b72a
commit 92488489db
3 changed files with 27 additions and 1 deletions

View file

@ -112,6 +112,18 @@
// console.log(location);
});
rendition.on("markMouseover", () => {
console.log('mouseover from rendition');
});
rendition.on("markMouseout", () => {
console.log('mouseout from rendition');
});
rendition.on("markClicked", () => {
console.log('clicked from rendition');
});
// Apply a class to selected text
rendition.on("selected", function(cfiRange, contents) {
rendition.annotations.highlight(