Thanks to visit codestin.com Credit goes to github.com
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.
1 parent 65bab8b commit 727f70cCopy full SHA for 727f70c
src/dd-resizable.ts
@@ -249,7 +249,7 @@ export class DDResizable extends DDBaseImplement implements HTMLElementExtendOpt
249
const offsetX = event.clientX - oEvent.clientX;
250
const offsetY = event.clientY - oEvent.clientY;
251
252
- if (typeof fixedAspectRatio !== 'undefined')
+ if (typeof fixedAspectRatio !== 'undefined' && fixedAspectRatio != 0 && !isNaN(fixedAspectRatio) && isFinite(fixedAspectRatio))
253
{
254
if (dir.indexOf('e') > -1) {
255
newRect.width += offsetX;
0 commit comments