diff --git a/examples/embedded.html b/examples/embedded.html index 50256d2..e9946f8 100644 --- a/examples/embedded.html +++ b/examples/embedded.html @@ -11,24 +11,8 @@ body { margin: 0; - -webkit-scroll-snap-type: mandatory; - -webkit-scroll-snap-points-x: repeat(100%); - -webkit-overflow-scrolling: auto; - - /*This scroll snap functionality is part of a polyfill - that enables the functionality in Chrome.*/ - scroll-snap-type: mandatory; - scroll-snap-points-x: repeat(100%); - width: 100vw; - overflow: auto; } - .epub-container { - margin: 0; - /*-webkit-scroll-snap-type: mandatory; - -webkit-scroll-snap-points-x: repeat(100%);*/ - /* -webkit-overflow-scrolling: touch; */ - }
@@ -42,18 +26,15 @@ // Load the opf var book = ePub(url || "https://s3.amazonaws.com/moby-dick/"); var rendition = book.renderTo(document.body, { - // width: "100vw", - // height: "100vh", - overflow: "visible", manager: "continuous", - // flow: "paginated" + snap: true }); rendition.display(currentCfi || currentSectionIndex); rendition.on("rendered", function(section){ - console.log("rendered", section); + // console.log("rendered", section); var nextSection = section.next(); var prevSection = section.prev(); @@ -65,9 +46,9 @@ }); rendition.on("relocated", function(location){ - console.log("locationChanged", location) + // console.log("locationChanged", location) console.log("locationChanged start", location.start.cfi) - console.log("locationChanged end", location.end.cfi) + // console.log("locationChanged end", location.end.cfi) }); window.addEventListener("unload", function () { @@ -76,119 +57,5 @@ }); - -