let w = parseFloat($("#fluidbook").css('width'));
let h = w / this.fluidbook.pageRatio;
- $("#elasticpages .scrollholder").css('height', h * this.fluidbook.settings.pages);
- $("#elasticpages .page").css({height: h});
+ $("#elasticpages .page,#elasticpages .scrollholder").css({height: h});
},
};
\ No newline at end of file
#elasticpages {
height: 100%;
width: 100%;
- overflow: scroll;
+
.scrollholder {
position: relative;
width: 100%;
+ height: 100%;
+ overflow-y: scroll;
+ overflow-x: hidden;
+ scroll-snap-type: y mandatory;
+ scroll-snap-stop: always;
+ -ms-overflow-style: none;
+ scrollbar-width: none;
+
+ &::-webkit-scrollbar {
+ display: none;
+ }
.page {
display: block;
position: relative;
+ scroll-snap-align: center;
}
}
}
\ No newline at end of file