mirror of
https://github.com/infeng/react-viewer.git
synced 2025-12-08 17:36:40 +00:00
fix: right mouse button trigger move
This commit is contained in:
parent
aab54fac5b
commit
266d59bf2b
@ -56,6 +56,9 @@ export default class ViewerCanvas extends React.Component<ViewerCanvasProps, Vie
|
||||
}
|
||||
|
||||
handleMouseDown = (e) => {
|
||||
if (e.button !== 0) {
|
||||
return;
|
||||
}
|
||||
if (!this.props.visible || !this.props.drag) {
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user