mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
p
This commit is contained in:
parent
2705c84a04
commit
6e09c30751
@ -73,12 +73,12 @@ h2.sticky {
|
||||
}
|
||||
|
||||
function onScroll() {
|
||||
|
||||
for ( var el, i = 0, l = elements.length; i < l; i++ ) {
|
||||
|
||||
el = elements[ i ];
|
||||
|
||||
var sticky = window.scrollY > el.top && window.scrollY <= el.next.top;
|
||||
|
||||
el.spacer.style.visibility = sticky ? 'visible' : 'hidden';
|
||||
|
||||
if ( el.next && sticky ) {
|
||||
|
Loading…
Reference in New Issue
Block a user