Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/DraggableCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,12 @@ export default class DraggableCore extends React.Component<DraggableCoreProps, D
this.props.onMouseDown(e);

// Only accept left-clicks.
if (!this.props.allowAnyClick && typeof e.button === 'number' && e.button !== 0) return false;
if (!this.props.allowAnyClick) {
if ((typeof e.button === 'number' && e.button !== 0) ||
e.ctrlKey) {
return false;
}
}

// Get nodes. Be sure to grab relative document (could be iframed)
const thisNode = this.findDOMNode();
Expand Down