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 f3da79a commit 548eab5Copy full SHA for 548eab5
src/dd-resizable.ts
@@ -257,12 +257,12 @@ export class DDResizable extends DDBaseImplement implements HTMLElementExtendOpt
257
if (offsetX > offsetY) {
258
if (dir.indexOf('e') > -1) {
259
newRect.width += offsetX;
260
- newRect.height += Math.round(offsetX / fixedAspectRatio);
+ newRect.height += Math.round(offsetX / fixedAspectRatio) - this.scrolled;
261
} else if (dir.indexOf('w') > -1) {
262
newRect.width -= offsetX;
263
newRect.left += offsetX;
264
265
- newRect.height -= Math.round(offsetX / fixedAspectRatio);
+ newRect.height -= Math.round(offsetX / fixedAspectRatio) + this.scrolled;
266
newRect.top += Math.round(offsetX / fixedAspectRatio);
267
}
268
} else {
0 commit comments