Skip to content

Commit 7d694ef

Browse files
committed
debugging mobile
1 parent 9389469 commit 7d694ef

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

_layouts/splash.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,14 @@
8181
const h = Math.max(minHeight, curHeight - currentScrollY);
8282
dynamicDiv.style.height = h + 'px';
8383
curHeight = h;
84-
// Force recompute of height:
84+
console.log({
85+
intended: h,
86+
inline: dynamicDiv.style.height,
87+
computed: getComputedStyle(dynamicDiv).height,
88+
offset: dynamicDiv.offsetHeight
89+
});
8590
window.scrollTo(currentScrollX, 0);
91+
// Force recompute of height:
8692
const dummy_h = dynamicDiv.style.height;
8793
const opac = (h - vanishHeight) / (maxHeight - vanishHeight);
8894
splashTxt.forEach((el) => {

0 commit comments

Comments
 (0)