Skip to content
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

滑动删除按钮后再关回去。再点击其他地方,会自动弹出删除 #6

Open
objcxiaobai opened this issue Aug 3, 2019 · 0 comments

Comments

@objcxiaobai
Copy link

objcxiaobai commented Aug 3, 2019

  1. 微信版本7.0.5
    2.调试库:2.6.6
    3.机型:iPhone8,系统:12.3
this.data.moveInstance = this.data.openWidth - x
-      this.data.currentX = x
+      this.setData({
+        moveInstance: this.data.openWidth - x,
+        currentX:x
+      })

大概定位在这段代码(借鉴楼下老哥的代码进行修改过),如果不进行判断open状态是否打开,再把moveInstance字段归0,等打开测滑删除的时候再关闭,点击其他地方,会自动弹出。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant