Skip to content

Commit

Permalink
Allow CTRL + click to be used for resizing (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
pahen authored Sep 14, 2021
1 parent f6d7d80 commit d681a3b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -689,12 +689,6 @@ export class Resizable extends React.PureComponent<ResizableProps, State> {
if (event.nativeEvent && isMouseEvent(event.nativeEvent)) {
clientX = event.nativeEvent.clientX;
clientY = event.nativeEvent.clientY;
// When user click with right button the resize is stuck in resizing mode
// until users clicks again, dont continue if right click is used.
// HACK: MouseEvent does not have `which` from flow-bin v0.68.
if (event.nativeEvent.which === 3) {
return;
}
} else if (event.nativeEvent && isTouchEvent(event.nativeEvent)) {
clientX = (event.nativeEvent as TouchEvent).touches[0].clientX;
clientY = (event.nativeEvent as TouchEvent).touches[0].clientY;
Expand Down

0 comments on commit d681a3b

Please sign in to comment.