mirror of
https://github.com/mempool/mempool.git
synced 2026-08-16 13:00:49 +02:00
Use passive listeners to improve scrolling performance #1605
This commit is contained in:
parent
da3f516388
commit
4463dae46b
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ export class ApiDocsComponent implements OnInit {
|
|||
}
|
||||
window.addEventListener('scroll', function() {
|
||||
that.desktopDocsNavPosition = ( window.pageYOffset > 182 ) ? "fixed" : "relative";
|
||||
});
|
||||
}, { passive: true} );
|
||||
}, 1 );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue