From cf4eabd9cb6f9759929af73ecf0bcf786bb82a77 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Sun, 17 Jan 2016 18:29:48 +0200 Subject: [PATCH] IE compatibility fix --- lib/common/components/StickySidebar/sticky-sidebar.js | 2 +- lib/components/SideMenu/side-menu.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common/components/StickySidebar/sticky-sidebar.js b/lib/common/components/StickySidebar/sticky-sidebar.js index 91a721b6..ed5904dc 100644 --- a/lib/common/components/StickySidebar/sticky-sidebar.js +++ b/lib/common/components/StickySidebar/sticky-sidebar.js @@ -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() { diff --git a/lib/components/SideMenu/side-menu.js b/lib/components/SideMenu/side-menu.js index 740f4d8d..3280e6ee 100644 --- a/lib/components/SideMenu/side-menu.js +++ b/lib/components/SideMenu/side-menu.js @@ -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) {