Use passive listeners to improve scrolling performance #1605
This commit is contained in:
parent
1ce69061c0
commit
887b222acf
@ -39,7 +39,7 @@ export class ApiDocsComponent implements OnInit {
|
||||
}
|
||||
window.addEventListener('scroll', function() {
|
||||
that.desktopDocsNavPosition = ( window.pageYOffset > 182 ) ? "fixed" : "relative";
|
||||
});
|
||||
}, { passive: true} );
|
||||
}, 1 );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user