mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 03:16:48 +03:00
IE compatibility fix
This commit is contained in:
parent
139a0ec1b9
commit
cf4eabd9cb
|
@ -55,7 +55,7 @@ export default class StickySidebar {
|
|||
}
|
||||
|
||||
get scrollY() {
|
||||
return this.scrollParent.scrollY || this.scrollParent.scrollTop || 0;
|
||||
return this.scrollParent.pageYOffset || this.scrollParent.scrollTop || 0;
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
|
|
@ -48,7 +48,7 @@ export default class SideMenu extends BaseComponent {
|
|||
}
|
||||
|
||||
scrollY() {
|
||||
return (this.scrollParent.scrollY != null) ? this.scrollParent.scrollY : this.scrollParent.scrollTop;
|
||||
return (this.scrollParent.pageYOffset != null) ? this.scrollParent.pageYOffset : this.scrollParent.scrollTop;
|
||||
}
|
||||
|
||||
hashScroll(evt) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user