1. 程式人生 > >vux 使用swiper 垂直滾動文字 報錯[Intervention] Ignored...

vux 使用swiper 垂直滾動文字 報錯[Intervention] Ignored...

[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example becaus

 

touch-action :當你觸控並按住觸控目標時候,禁止或顯示系統預設選單。 
touch-action取值有一下兩種 
none:系統預設選單被禁用 
default:系統預設選單不被禁用

 

          <swiper class="bd" auto height="90px" direction="vertical"
:interval=3000 :show-dots="false"> <swiper-item class="problem_title" v-for="(items, index) in new_recommendQA" :key="index"> <p class="title" v-for="(item, i) in items" :key="i" @click='getQA(item)'> {{item}}
</p> </swiper-item> </swiper>

 

css新增樣式

            .problem_title
                        display: block;
                        padding: 6px 0;
                        touch-action: none;