作者:有心人php | 来源:互联网 | 2023-08-07 14:30
Ihavelongverticallistoflinksthatusercanscrollthrough,andIneedtopreventtriggeringa
I have long vertical list of links that user can scroll through, and I need to prevent triggering a click
event (touch) on this links if user scrolls.
我有很长的用户可以滚动的垂直链接列表,如果用户滚动,我需要阻止在此链接上触发点击事件(触摸)。
In current scenario, when user start scrolling by tapping over the link, it also triggers a click
on link. Which is obviously bad. So, is there any way to prevent such a behavior?
在当前场景中,当用户通过点击链接开始滚动时,它也会触发链接上的点击。这显然很糟糕。那么,有什么办法可以阻止这种行为吗?
1 个解决方案