Skip to content

Commit 366c077

Browse files
committed
fix a bug
1 parent a3a2920 commit 366c077

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/App.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,6 @@ import { SplitText } from "gsap/SplitText";
153153
gsap.registerPlugin(ScrollTrigger, ScrollSmoother, ScrollToPlugin, SplitText);
154154
155155
const animateBox = ref(null);
156-
window.addEventListener("resize",()=>{
157-
location.reload();
158-
});
159156
onMounted(() => {
160157
let smoother = ScrollSmoother.create({
161158
smooth: 0.1,
@@ -313,7 +310,6 @@ onMounted(() => {
313310
});
314311
});
315312
});
316-
ScrollTrigger.refresh();
317313
});
318314
319315
</script>

0 commit comments

Comments
 (0)