Skip to content

Commit

Permalink
Enhance : Design android app page according to new design
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-jagruti-a committed Oct 23, 2023
1 parent 1badecf commit 845a897
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ export default {
};
},
mounted() {
this.width = window.innerWidth;
document.addEventListener("scroll", this.handleScroll);
let sticky = document.querySelector(".sticky");
Expand Down Expand Up @@ -295,8 +296,11 @@ export default {
const windowHeight = window.innerHeight;
const lastSlide = document.querySelector(".main:last-child");
const lastSlidePosition = lastSlide.getBoundingClientRect().top;
if (lastSlidePosition <= windowHeight && lastSlidePosition >= 0) {
var threshold = windowHeight * 0.2;
if (this.width < 3840) {
threshold = 56.84375;
}
if (lastSlidePosition <= windowHeight && lastSlidePosition >= threshold) {
this.lastSlideReached = true;
this.isScrollingUp = window.scrollY < this.scrollPosition;
} else {
Expand Down

0 comments on commit 845a897

Please sign in to comment.