Open epubreader opened 6 years ago
Can I see your HTML for the viewer?
pug code like this `block content
.spreads-wrap
#viewer.spreads
#prev.arrow ‹
#next.arrow ›`
block content
.spreads-wrap
#viewer.spreads
#prev.arrow ‹
#next.arrow ›
Did you add event handlers to the previous and next buttons?
of cource I have added the event handler, sometimes it is works in fullscreen mode, sometimes it doesn't work
Maybe the rendition overlaps the prev/next arrows. Try to change the css of the arrows by applieng a z-index of 2.
const viewer = document.getElementById('viewer-wrap') document.getElementById('full-screen').addEventListener('click', () => { const req = viewer.requestFullScreen || viewer.webkitRequestFullScreen || viewer.mozRequestFullScreen req.call(viewer) })
when I click next button, the page can't go to the next page, can you help to fix it, thanks.