We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
shiftKey
1 parent 388c71a commit 206d2b4Copy full SHA for 206d2b4
packages/element-selection/src/index.ts
@@ -399,7 +399,7 @@ export default class CropperSelection extends CropperElement {
399
let { aspectRatio } = this;
400
401
// Locking aspect ratio by holding shift key
402
- if (!isPositiveNumber(aspectRatio) && (event as PointerEvent).shiftKey) {
+ if (!isPositiveNumber(aspectRatio) && relatedEvent.shiftKey) {
403
aspectRatio = isPositiveNumber(width) && isPositiveNumber(height) ? width / height : 1;
404
}
405
0 commit comments