未验证 提交 33903f79 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #14426 from greggman/synchronized-scrolling

better synchronized scrolling
......@@ -16,19 +16,19 @@
font-size:13px;
background-color: #fff;
margin: 0px;
margin: 0;
}
#info {
position: absolute;
top: 0px; width: 100%;
top: 0; width: 100%;
padding: 5px;
text-align:center;
}
#content {
position: absolute;
top: 0px; width: 100%;
top: 0; width: 100%;
z-index: 1;
padding: 3em 0 0 0;
}
......@@ -38,8 +38,8 @@
}
#c {
position: fixed;
left: 0px;
position: absolute;
left: 0;
width: 100%;
height: 100%;
}
......@@ -187,6 +187,8 @@
updateSize();
canvas.style.transform = `translateY(${window.scrollY}px)`;
renderer.setClearColor( 0xffffff );
renderer.setScissorTest( false );
renderer.clear();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册