cover-view的touchstart和touchmove事件
发布于 5 年前 作者 guiyingyu 6643 次浏览 来自 问答

在手机上测试,cover-view不相应touchstart和touchmove事件,手机型号红米4

6 回复

相同问题,求解决。

请问解决了么,求解

我用canvas 上面放一个 cover-view  然后 canvas 的 触摸事件就完蛋了,

现在我的办法是  在canvas上 直接绘制。。。

遇到相同的问题,求解决一波

需要在手机上测试,模拟器上正常的

<cover-view class=“chat”>

    <cover-view class=“chat-items” style=“top:{{chatViewTop}}px” bindtouchstart=“onChatTouchStart” bindtouchmove=“onChatTouchMove”>

        <cover-view class=“chat-item” wx:for="{{chats}}" wx:key=“index”>

            <cover-view class=“chat-name-text”>{{util.formatNickName(item.name)}}</cover-view>

            <cover-view class=“chat-content-text”>{{item.content}}</cover-view>

        </cover-view>

    </cover-view>

</cover-view>

回到顶部