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;

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM