IE compatibility fix

This commit is contained in:
Roman Hotsiy 2016-01-17 18:29:48 +02:00
parent 139a0ec1b9
commit cf4eabd9cb
2 changed files with 2 additions and 2 deletions

View File

@ -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() {

View File

@ -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) {