-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
enhance: delete drag lock. add leave view back to zoom #6317
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## feature #6317 +/- ##
===========================================
+ Coverage 91.05% 91.53% +0.47%
===========================================
Files 307 310 +3
Lines 6597 6661 +64
Branches 1644 1654 +10
===========================================
+ Hits 6007 6097 +90
+ Misses 544 531 -13
+ Partials 46 33 -13
☔ View full report in Codecov by Sentry. |
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-6317.surge.sh |
考古到一个相关的PR #5701,应该选一下实现方式吧 |
删除锁会导致缩小、放大的操作误认为滑动的 |
This reverts commit b31e392.
resolve #6310
主要改动就是删除了 dragLockRef 这个拖动锁,然后把 slide 的冒泡删了,不然外层的· drag不触发。
然后加这段代码是最小改动,离开视图回到原始缩放