[英]Forwarding a touchmove event
I have an element that sits on top of a horizontally scrollable element. 我有一个位于水平可滚动元素上方的元素。 When I scroll over this element I want to forward that scroll event to the scrollable element below, but when I click on it I want it to do something else. 当我在该元素上滚动时,我想将该滚动事件转发到下面的可滚动元素,但是当我单击它时,我希望它做其他事情。
$(".scroll-indicator").on("touchmove", function(evt){
// forward scroll event to ".scrollable-element"
});
$(".scroll-indicator").on("click", function(evt){
alert("Clicked!");
});
How can I forward the scroll event to my scrollable element? 如何将滚动事件转发到可滚动元素?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.