Skip to content

Commit

Permalink
EPUB: Fix null viewport width (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-menu committed Oct 5, 2022
1 parent db45dec commit 34192fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions readium/navigator/src/main/assets/_scripts/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,10 @@ window.addEventListener(
function () {
const observer = new ResizeObserver(() => {
appendVirtualColumnIfNeeded();
});
observer.observe(document.body);

window.addEventListener("orientationchange", function () {
onViewportWidthChanged();
snapCurrentOffset();
});
onViewportWidthChanged();
observer.observe(document.body);
},
false
);
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 34192fa

Please sign in to comment.