-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.0.5 swiper组件无法手动滑动 #16517
Comments
注释掉 scrollView的handleTouchMove恢复正常,不知道有没有其他影响 diff --git a/node_modules/@tarojs/components/dist/components/taro-scroll-view-core.js b/node_modules/@tarojs/components/dist/components/taro-scroll-view-core.js
index 3fbf3df..a3a5c70 100644
--- a/node_modules/@tarojs/components/dist/components/taro-scroll-view-core.js
+++ b/node_modules/@tarojs/components/dist/components/taro-scroll-view-core.js
@@ -172,7 +172,10 @@ const ScrollView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
"animated": [4, "scroll-with-animation"],
"mpScrollToMethod": [64],
"mpScrollIntoViewMethod": [64]
- }, [[1, "scroll", "handleScroll"], [1, "touchmove", "handleTouchMove"]]]);
+ }, [
+ [1, "scroll", "handleScroll"],
+ // [1, "touchmove", "handleTouchMove"]
+ ]]);
function defineCustomElement$1() {
if (typeof customElements === "undefined") {
return; |
This was referenced Sep 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
H5
浏览器版本: 所有
使用框架: React
复现步骤
只要将Swiper嵌套在ScrollView里面,就无法手动滑动Swiper
期望结果
1
实际结果
2
环境信息
The text was updated successfully, but these errors were encountered: