We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd6364a commit 527e112Copy full SHA for 527e112
1 file changed
Auditor/HTMLCSAuditor.js
@@ -197,14 +197,14 @@ _global.HTMLCSAuditor = new function()
197
};
198
199
_doc.onmouseup = function(e) {
200
- var maxHeight = window.innerHeight - e.clientHeight;
201
-
202
- if (mouseX > maxHeight) {
+ var maxHeight = window.innerHeight - wrapper.offsetHeight;
+
+ if (mouseY > maxHeight) {
203
wrapper.style.top = maxHeight + 'px';
204
- } else if (mouseX < 0) {
+ } else if (mouseY < 0) {
205
wrapper.style.top = 0 + 'px';
206
}
207
208
dragging = false;
209
210
0 commit comments