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

fix(ImagePreview): double-scale and close-on-click-overlay may not work in certain scenarios #12521

Merged
merged 1 commit into from
Dec 23, 2023

Conversation

inottn
Copy link
Collaborator

@inottn inottn commented Dec 23, 2023

Fix the two issues below:

  1. When double-scale is set to false, close-on-click-overlay will not work.
  2. When close-on-click-overlay is set to false, double-click zooming will not work.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (979472d) 89.88% compared to head (8771854) 89.88%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #12521   +/-   ##
=======================================
  Coverage   89.88%   89.88%           
=======================================
  Files         257      257           
  Lines        6801     6802    +1     
  Branches     1648     1647    -1     
=======================================
+ Hits         6113     6114    +1     
  Misses        366      366           
  Partials      322      322           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@chenjiahan chenjiahan changed the title fix: double-scale and close-on-click-overlay may not work in certain scenarios fix(ImagePreview): double-scale and close-on-click-overlay may not work in certain scenarios Dec 23, 2023
@chenjiahan chenjiahan enabled auto-merge (squash) December 23, 2023 09:58
@chenjiahan chenjiahan merged commit 8756ceb into youzan:main Dec 23, 2023
@chenjiahan
Copy link
Member

Nice 👍🏻

CatsAndMice pushed a commit to CatsAndMice/vant that referenced this pull request Apr 8, 2024
@inottn inottn deleted the fix/image-preview branch October 14, 2024 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants