epub.js icon indicating copy to clipboard operation
epub.js copied to clipboard

CFI not matched on SELECT event of Rendition in Mobile and Desktop

Open RatulSikder97 opened this issue 3 years ago • 2 comments

When I annotate by the selection, I get different CFI in Desktop and Mobile. I have used Firebase Firestore as annotation storage. I store CFI of selections. So, When again the book is re-rendered, an error is emitted. "No startContainer found for epubcfi(/6/6[id221]!/4/6,/1:40,/1:46)"

Can anyone kindly help me?

RatulSikder97 avatar Nov 30 '21 07:11 RatulSikder97

What CFI do you get in desktop and mobile? I find it very strange as we are also using epub.js on both desktop and mobiles and did not see such behavior.

-- Ori Idan CEO Helicon Books http://www.heliconbooks.com

On Tue, Nov 30, 2021 at 9:37 AM Ratul Sikder @.***> wrote:

When I annotate by the selection, I get different CFI in Desktop and Mobile. I have used Firebase Firestore as annotation storage. I store CFI of selections. So, When again the book is re-rendered, an error is emitted. "No startContainer found for epubcfi(/6/6[id221]!/4/6,/1:40,/1:46)"

Can anyone kindly help me?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/futurepress/epub.js/issues/1228, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB43QC3BOYMHFI7GEDVQM3UOR5KZANCNFSM5JBB6CCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

OriIdan avatar Nov 30 '21 11:11 OriIdan

I get epubcfi(/6/4[Section0001.xhtml]!/12/6/2,/1:0,/1:8) in desktop and epubcfi(/6/4[Section0001.xhtml]!/4/6/2,/1:0,/1:7) in mobile for same selected content. For so, I can't sync annotation between cross devices(mobile and desktop web reader).

RatulSikder97 avatar Nov 30 '21 16:11 RatulSikder97