weex滚轮控件的滚动事件与子控件的触摸事件冲突
问题描述:
这是一个关于使用Vue开发Weex的问题。weex滚轮控件的滚动事件与子控件的触摸事件冲突
在scroller
组件下,有许多嵌套的div
子组件。在div
中,添加了手势touchstart
,touchend
和touchcancel
。
事件处理新闻和释放效果,但它们使滚动拖动事件不起作用。我该如何解决这个问题?
答
如果你只是想添加触摸效果视图中,可以使用伪类:
<style scoped>
.logo {
width: 360px;
height: 82px;
background-color: red;
}
.logo:active {
width: 180px;
height: 82px;
background-color: green;
}
</style>
裁判:http://weex.apache.org/references/common-style.html#Pseudo-class-v0-9-5
欢迎SO。我们在这里帮助您解决问题或帮助您提供的代码。请参阅[游览](https://*.com/help)并阅读[帮助中心](https://*.com/help),了解如何发布问题。 – Syfer