Skip to content

Commit 50841be

Browse files
committed
Correct scroll with new overflow flag
1 parent 5532127 commit 50841be

4 files changed

Lines changed: 16 additions & 4 deletions

File tree

css/dist/ReadiumCSS-after.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,11 @@ body{
9797
min-height:0 !important;
9898
}
9999

100-
:root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]) body{
100+
:root[style*="readium-scroll-on"] body{
101101
max-width:var(--RS__defaultLineLength) !important;
102+
}
103+
104+
:root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]) body{
102105
overflow:auto;
103106
}
104107

css/dist/cjk-horizontal/ReadiumCSS-after.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,11 @@ body{
9797
min-height:0 !important;
9898
}
9999

100-
:root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]) body{
100+
:root[style*="readium-scroll-on"] body{
101101
max-width:var(--RS__defaultLineLength) !important;
102+
}
103+
104+
:root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]) body{
102105
overflow:auto;
103106
}
104107

css/dist/rtl/ReadiumCSS-after.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,11 @@ body{
9797
min-height:0 !important;
9898
}
9999

100-
:root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]) body{
100+
:root[style*="readium-scroll-on"] body{
101101
max-width:var(--RS__defaultLineLength) !important;
102+
}
103+
104+
:root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]) body{
102105
overflow:auto;
103106
}
104107

css/src/modules/ReadiumCSS-scroll.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@
2222
}
2323

2424
/* Make sure line-length is limited in all configs */
25+
:root:--scroll-view body {
26+
max-width: var(--RS__defaultLineLength) !important;
27+
}
28+
2529
:root:--scroll-view:not(:--no-overflow) body {
2630
overflow: auto;
27-
max-width: var(--RS__defaultLineLength) !important;
2831
}
2932

3033
@supports (overflow: clip) {

0 commit comments

Comments
 (0)