File tree Expand file tree Collapse file tree 3 files changed +19
-9
lines changed Expand file tree Collapse file tree 3 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 11import { boot } from 'quasar/wrappers' ;
22import AOS from 'aos' ;
33import 'aos/dist/aos.css' ; // You can also use <link> for styles
4- // ..
5- export default boot ( ( { app } ) => {
6- AOS . init ( ) ;
4+
5+ export default boot ( ( ) => {
6+ AOS . init ( {
7+ once : true , // Don't trigger animations on scroll back up
8+ } ) ;
79} ) ;
Original file line number Diff line number Diff line change 1+ import { boot } from 'quasar/wrappers' ;
12import VueSmoothScroll from 'vue3-smooth-scroll' ;
2- export default ( { app } ) => {
3+
4+ export default boot ( ( { app } ) => {
35 app . use ( VueSmoothScroll ) ;
4- } ;
6+ } ) ;
Original file line number Diff line number Diff line change @@ -178,10 +178,16 @@ export default {
178178 }
179179
180180 function onScrollToTop () {
181- smoothScroll ({
182- scrollTo: document .getElementById (' top' ),
183- updateHistory: false ,
184- });
181+ if (smoothScroll) {
182+ // Use smoothScroll to scroll to top (position 0)
183+ smoothScroll ({
184+ scrollTo: 0 ,
185+ updateHistory: false ,
186+ });
187+ } else {
188+ // Fallback to native smooth scroll
189+ window .scrollTo ({ top: 0 , behavior: ' smooth' });
190+ }
185191 }
186192
187193 function onGoToPanel (card ) {
You can’t perform that action at this time.
0 commit comments