File tree Expand file tree Collapse file tree
scripts/section-transitions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export function initTransition() {
3232
3333 // accouting for large screens, where there is very minimal scrolling
3434 useScrollPosition ( ( { yPercentage } ) => {
35- if ( yPercentage === 1 ) show ( )
35+ if ( yPercentage >= 0.99 ) show ( )
3636 } )
3737}
3838
Original file line number Diff line number Diff line change @@ -31,8 +31,7 @@ export function initTransition() {
3131
3232 // accouting for large screens, where there is very minimal scrolling
3333 useScrollPosition ( ( { yPercentage } ) => {
34- console . log ( yPercentage )
35- if ( yPercentage === 1 ) show ( )
34+ if ( yPercentage >= 0.99 ) show ( )
3635 } )
3736}
3837
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export function initTransition() {
3636
3737 // accouting for large screens, where there is very minimal scrolling
3838 useScrollPosition ( ( { yPercentage } ) => {
39- if ( yPercentage === 1 ) show ( )
39+ if ( yPercentage >= 0.99 ) show ( )
4040 } )
4141}
4242
You can’t perform that action at this time.
0 commit comments