mirror of
https://github.com/dataarts/dat.gui.git
synced 2025-01-02 03:14:20 +00:00
gui is now in el.example.panel
This commit is contained in:
parent
ef33140f5b
commit
2f825b790e
@ -70,7 +70,7 @@ function sticky( elements ) {
|
|||||||
var sticky = window.scrollY > el.top && window.scrollY <= el.next.top;
|
var sticky = window.scrollY > el.top && window.scrollY <= el.next.top;
|
||||||
el.sticky.style.visibility = sticky ? 'visible' : 'hidden';
|
el.sticky.style.visibility = sticky ? 'visible' : 'hidden';
|
||||||
|
|
||||||
el.example.classList.toggle( 'sticky', sticky || el.bumped );
|
el.example.panel.classList.toggle( 'sticky', sticky || el.bumped );
|
||||||
|
|
||||||
if ( el.next ) el.next.bumped = false;
|
if ( el.next ) el.next.bumped = false;
|
||||||
|
|
||||||
@ -86,8 +86,8 @@ function sticky( elements ) {
|
|||||||
|
|
||||||
if ( bumped ) {
|
if ( bumped ) {
|
||||||
|
|
||||||
el.example.classList.remove( 'sticky' );
|
el.example.panel.classList.remove( 'sticky' );
|
||||||
el.next.example.classList.add( 'sticky' );
|
el.next.example.panel.classList.add( 'sticky' );
|
||||||
el.next.bumped = true;
|
el.next.bumped = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user