+
+
@@ -94,19 +84,17 @@
:class="portfolio.row1Background"
class="flex flex-col justify-center !basis-[40%] justify-around px-8"
>
-
+
-
-
+ class="absolute top-4 xl:top-8 right-[-25%] xl:right-[-17%] 2xll:right-[-18%] xll:right-[-12%] 3xl:right-[-13%] w-[250px] h-[250px] p-8 xl:w-[300px] xl:h-[300px] rounded-full flex items-center"
+ >
+
-
- SKIP
-
0;
- }
- return event.deltaY < 0;
- },
-
- handleWheel(event) {
- if (this.scrollDirectionIsUp(event)) {
- this.skipNext = false;
- } else {
- this.skipNext = true;
- }
- },
- //handleTouch event
- handleTouchStart(event) {
- this.lastTouchY = event.touches[0].clientY;
- },
- handleTouchMove(event) {
- if (this.lastTouchY !== null) {
- const currentTouchY = event.touches[0].clientY;
- if (currentTouchY > this.lastTouchY) {
- this.skipNext = false;
- } else if (currentTouchY < this.lastTouchY) {
- this.skipNext = true;
- }
- this.lastTouchY = currentTouchY;
- }
- },
- handleTouchEnd() {
- this.lastTouchY = null;
- },
- scrollToNext() {
- if (this.skipNext) {
- this.$emit("scroll-to-next");
- } else {
- this.$emit("scroll-to-previous");
- }
- },
- handleScrollTop() {
+ handleScroll() {
const stickyParent = document.getElementById("stickyParent");
const stickyTop = stickyParent.offsetTop;
- let scrollTop = window.scrollY;
var position = stickyParent.getBoundingClientRect();
if (
@@ -317,24 +240,11 @@ export default {
(window.innerHeight || document.documentElement.clientHeight)
) {
this.swiperRef.mousewheel.enable();
- this.swiperRef.allowTouchMove = true;
+ this.$emit("sectionFullscreen", false);
} else {
this.swiperRef.mousewheel.disable();
- this.swiperRef.allowTouchMove = false;
- }
- this.lastScrollY = scrollTop;
- },
- handleScroll() {
- const windowHeight = window.innerHeight;
- const lastSlide = document.querySelector(".main");
- const lastSlidePosition = lastSlide.getBoundingClientRect().top;
- if (lastSlidePosition <= windowHeight && lastSlidePosition >= 0) {
- this.lastSlideReached = true;
- this.isScrollingUp = window.scrollY < this.scrollPosition;
- } else {
- this.lastSlideReached = false;
+ this.$emit("sectionFullscreen", true);
}
- this.scrollPosition = window.scrollY;
},
},
components: {
@@ -346,6 +256,9 @@ export default {