Skip to content

Commit 8e10826

Browse files
authored
Merge pull request #100 from Steven-L-42/master
fix: Prevents the title bar of a dialog from being pulled out of the …
2 parents e90e3e5 + af1981b commit 8e10826

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DockManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class DockManager {
156156

157157
let rect = this.element.getBoundingClientRect();
158158
let dy = Math.floor(currentMousePosition.y - previousMousePosition.y);
159-
let topBounds = container.offsetTop + dy + rect.top < 0;
159+
let topBounds = container.offsetTop + dy < 0;
160160
let bottomBounds = container.offsetTop + dy + rect.top > (window.innerHeight - 16);
161161
if (topBounds) {
162162
previousMousePosition.y = currentMousePosition.y;
@@ -899,4 +899,4 @@ export class DockManager {
899899
}
900900
}
901901
}
902-
}
902+
}

0 commit comments

Comments
 (0)