futurepress / epub.js

Enhanced eBooks in the browser.
http://futurepress.org
Other
6.48k stars 1.11k forks source link

fullscreen mode not work for 0.3.72 #840

Open epubreader opened 6 years ago

epubreader commented 6 years ago

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.

pgaskin commented 6 years ago

Can I see your HTML for the viewer?

epubreader commented 6 years ago

pug code like this `block content

epub-viewer

    .spreads-wrap
        #viewer.spreads
    #prev.arrow ‹
    #next.arrow ›`
epubreader commented 6 years ago

block content

epub-viewer

    .spreads-wrap
        #viewer.spreads
    #prev.arrow ‹
    #next.arrow ›
pgaskin commented 6 years ago

Did you add event handlers to the previous and next buttons?

epubreader commented 6 years ago

of cource I have added the event handler, sometimes it is works in fullscreen mode, sometimes it doesn't work

Cifyger commented 6 years ago

Maybe the rendition overlaps the prev/next arrows. Try to change the css of the arrows by applieng a z-index of 2.