Skip to content

Commit

Permalink
fix marquee in small devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Hetari committed Aug 30, 2024
1 parent 7227c51 commit 39bd438
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/design/Marquee.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,10 @@
};
onMounted(() => {
initializeMarqueeWithObserver('marquee-1', true, -10, 0.3);
initializeMarqueeWithObserver('marquee-2', false, 1, 0.6);
initializeMarqueeWithObserver('marquee-3', true, 10);
if (!isSmallScreen.value) {
initializeMarqueeWithObserver('marquee-1', true, -10, 0.3);
initializeMarqueeWithObserver('marquee-2', false, 1, 0.6);
initializeMarqueeWithObserver('marquee-3', true, 10);
}
});
</script>

0 comments on commit 39bd438

Please sign in to comment.