1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

Merge pull request #1184 from Upstatement/fix-marks-example

fix marks example
This commit is contained in:
Fred Chasen 2021-10-18 22:47:19 -07:00 committed by GitHub
commit f632df7cb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,7 @@
// Apply a class to selected text // Apply a class to selected text
rendition.on("selected", function(cfiRange, contents) { rendition.on("selected", function(cfiRange, contents) {
var m = contents.mark(cfiRange, {'something' : true}, (e) => { rendition.annotations.mark(cfiRange, {'something' : true}, (e) => {
var bounds = e.target.getBoundingClientRect(); var bounds = e.target.getBoundingClientRect();
var clientX = e.clientX; var clientX = e.clientX;