Skip to content

Commit e20073f

Browse files
Bug fix. (#292)
1 parent e3db469 commit e20073f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/drag.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ export class BoundedDrag extends Drag {
8282
if (this._boundingRegion || this._initializing) {
8383
const { left, top } = this.bound(clientX, clientY);
8484
const style = this.dragImage.style;
85-
style.top = `${left}px`;
86-
style.left = `${top}px`;
85+
style.left = `${left}px`;
86+
style.top = `${top}px`;
8787
this._initializing = false;
8888
}
8989
}

0 commit comments

Comments
 (0)