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:
parent
583577b72a
commit
92488489db
3 changed files with 27 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue