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