Skip to content

Commit 69240ba

Browse files
committed
tweaking css to debug iOS
1 parent 54fae5e commit 69240ba

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

_layouts/splash.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,8 @@
8080
if (curHeight > minHeight) {
8181
const h = Math.max(minHeight, curHeight - currentScrollY);
8282
dynamicDiv.style.height = h + 'px';
83-
dynamicDiv.getBoundingClientRect();
8483
curHeight = h;
8584
window.scrollTo(currentScrollX, 0);
86-
// Force recompute of height:
8785
const opac = (h - vanishHeight) / (maxHeight - vanishHeight);
8886
splashTxt.forEach((el) => {
8987
if (h <= vanishHeight) {

style.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ body {
5252
color: var(--fg-color);
5353
font-weight: 250;
5454
text-align: justify;
55+
-webkit-overflow-scrolling: touch;
5556
}
5657
body b, body strong {
5758
color: var(--fg-color);
@@ -223,6 +224,10 @@ img {
223224
justify-content: space-between;
224225
flex-direction: column;
225226

227+
-webkit-transform: translateZ(0);
228+
transform: translateZ(0);
229+
will-change: height;
230+
226231
/* sticky header */
227232
/*
228233
position: sticky;
@@ -234,6 +239,8 @@ img {
234239
width: 940px;
235240
max-width: 100%;
236241
height: 100dvh;
242+
-webkit-transform: translateZ(0);
243+
transform: translateZ(0);
237244
}
238245
.splash-banner-logotext {
239246
color: var(--cap-fg-color);

0 commit comments

Comments
 (0)