diff --git a/src/resizer/resizer.ts b/src/resizer/resizer.ts index 4f5c97f72c..d45898b525 100644 --- a/src/resizer/resizer.ts +++ b/src/resizer/resizer.ts @@ -114,6 +114,10 @@ export default class Resizer { } private onMouseDown = (event: MouseEvent): void => { + const LEFT_MOUSE_BUTTON = 0; + if (event.button !== LEFT_MOUSE_BUTTON) { + return; + } // use closest in case the resize handle contains // child dom nodes that can be the target const resizeHandle = event.target && (event.target).closest(`.${this.classNames.handle}`);