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

After the contextmenu is triggered, the drag state is continuously maintained. #51

Closed
zf1517 opened this issue Feb 28, 2019 · 2 comments

Comments

@zf1517
Copy link

zf1517 commented Feb 28, 2019

After the right mouse button triggers the contextmenu, the mouseup event is invalid, causing the drag state to remain. It is recommended to close the right mouse drag.
handleMouseDown = (e) => { if (!this.props.visible || !this.props.drag) { return; } e.preventDefault(); e.stopPropagation(); if(e.button === 0){ this.setState({ isMouseDown: true, mouseX: e.nativeEvent.clientX, mouseY: e.nativeEvent.clientY, }); } }

@infeng
Copy link
Owner

infeng commented Feb 28, 2019

Welcome pr.

@infeng
Copy link
Owner

infeng commented Aug 16, 2019

Fixed in v2.10.2

@infeng infeng closed this as completed Aug 16, 2019
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

2 participants