mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-30 17:44:07 +03:00
IE compatibility fix
This commit is contained in:
parent
139a0ec1b9
commit
cf4eabd9cb
|
@ -55,7 +55,7 @@ export default class StickySidebar {
|
||||||
}
|
}
|
||||||
|
|
||||||
get scrollY() {
|
get scrollY() {
|
||||||
return this.scrollParent.scrollY || this.scrollParent.scrollTop || 0;
|
return this.scrollParent.pageYOffset || this.scrollParent.scrollTop || 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
|
@ -48,7 +48,7 @@ export default class SideMenu extends BaseComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
scrollY() {
|
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) {
|
hashScroll(evt) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user