uniapp touch事件
时间: 2023-09-11 15:04:30 浏览: 217
在uniapp中,常用的touch事件包括@touchstart、@touchmove、@touchend、@touchcancel和@longtap。然而,在字节跳动小程序中,不支持这些touch事件,即@touchstartEventHandle、@touchmoveEventHandle、@touchendEventHandle、@touchcancelEventHandle和@longtapEventHandle在字节跳动小程序中都不可用。如果你想实现类似探探卡片右滑效果的功能,可以考虑使用uniapp,并结合自写分享来实现,这样可以在APP和H5环境中完美兼容。此外,如果你需要使用colorui组件库,可以从其GitHub下载地址(https://github.com/weilanwl/ColorUI)获取。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [uniapp 点击,长按,触摸,结束触摸事件](https://blog.csdn.net/qq_34403164/article/details/118931553)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [uniapp 仿探探卡片右滑效果 完美兼容 APP H5](https://download.csdn.net/download/duanhaijiao001/87384029)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [uni-app 监听触摸事件 滑动事件](https://blog.csdn.net/DevilAngelia/article/details/115106145)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文