File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ function initSwiper(swiperEl) {
5555 if ( typeof params . initialSlide === 'undefined' && typeof initialSlide !== 'undefined' ) {
5656 params . initialSlide = initialSlide ;
5757 }
58-
5958 const swiper = app . swiper . create ( $swiperEl [ 0 ] , params ) ;
6059 function updateSwiper ( ) {
6160 swiper . update ( ) ;
@@ -89,15 +88,15 @@ function initSwiper(swiperEl) {
8988 let view = app . views . get ( $swiperEl . parents ( '.view' ) ) ;
9089 if ( ! view ) view = app . views . main ;
9190 const router = view . router ;
92- const tabRouteUrl = router . findTabRouteUrl ( swiper . slides . eq ( swiper . activeIndex ) [ 0 ] ) ;
91+ const tabRouteUrl = router . findTabRouteUrl ( $ ( swiper . slides ) . eq ( swiper . activeIndex ) [ 0 ] ) ;
9392 if ( tabRouteUrl ) {
9493 setTimeout ( ( ) => {
9594 router . navigate ( tabRouteUrl ) ;
9695 } , 0 ) ;
9796 }
9897 } else {
9998 app . tab . show ( {
100- tabEl : swiper . slides . eq ( swiper . activeIndex ) ,
99+ tabEl : $ ( swiper . slides ) . eq ( swiper . activeIndex ) ,
101100 } ) ;
102101 }
103102 } ) ;
Original file line number Diff line number Diff line change 3333 }
3434 > .tabs > .tab {
3535 display : block ;
36+ touch-action : pan-y ;
3637 }
3738}
3839.page > .tabs {
You can’t perform that action at this time.
0 commit comments