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: only allow main button when drag image #61

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

simonwong
Copy link
Contributor

  • Bug fix

问题描述

预览图片在点击鼠标右键后,图片会跟随鼠标移动。🧐 图片拖拽应该只允许使用左键。

@vercel
Copy link

vercel bot commented Jan 12, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/react-component/image/30bkpmcoh
✅ Preview: https://image-git-fork-simonwong-hotfix-mousedownevent.react-component.vercel.app

@codecov
Copy link

codecov bot commented Jan 12, 2021

Codecov Report

Merging #61 (6c856a1) into master (6f73023) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #61   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines          228       229    +1     
  Branches        64        65    +1     
=========================================
+ Hits           228       229    +1     
Impacted Files Coverage Δ
src/Preview.tsx 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6f73023...6c856a1. Read the comment docs.

Copy link
Member

@shaodahong shaodahong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

2 participants