scroll-view 横向自动滚动添加scroll-with-animation后事件触发异常?

小程序 文章 2022-04-25 16:00 1090 0 全屏看文

AI助手支持GPT4.0

scroll-view 横向自动滚动添加scroll-with-animation后事件触发异常?Scroll-view horizontal automatic scrolling adds scroll-with-animation event trigger exception?

scroll-view 横向自动滚动添加scroll-with-animation后事件触发异常?
<view class="container">    <image class="ic_msg" src="/uploads/cj/article/2022/04/25/a445abda57c77e8355cf88c4a8358044.jpg"></image>    <scroll-view class="announcement-container" scroll-x scroll-left="{{scrollLeft}}" lower-threshold="{{lower}}" bindscrolltolower ="scrollToLower"    >{{content}}</scroll-view>    <image class="btn_msg_del" src="/uploads/cj/article/2022/04/25/bbe581886eac212f5cf850b969aa3adf.jpg"></image></view>

需求是实现横向走马灯功能

使用了<scroll-view>后添加了过渡scroll-with-animation后,无法触发bindscrolltolower的情况,过程中有明显的一次抖动情况,后将bindscrolltolower更换为bindscroll后,发现在抖动处才会触发一次

scroll-with-animation删除后触底事件和滚动时触发事件才正常

        {{content}}    < / Image > < / View > the requirement is to realize the horizontal riding light function. After using < scroll View > and adding the transition scroll with animation, the bindscrolltower cannot be triggered. There is an obvious jitter in the process. After changing the bindscrolltower to bindscroll, the jitter will be triggered once. The scroll with animation will be triggered only after deleting the bottom event and the triggering event during scrolling

回答:

社区技术运营专员-CJiang:

以真机为准

A.G.A.I.N:

以真机为准

陳子祥:

目前发现是开发者工具是会出现这个问题,真机没有

-EOF-

AI助手支持GPT4.0