Skip to content

Commit 9a4c7fb

Browse files
committed
Merge branch 'djdany01-issue-197'
2 parents 372e1a3 + 527e112 commit 9a4c7fb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Auditor/HTMLCSAuditor.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,14 @@ _global.HTMLCSAuditor = new function()
197197
};
198198

199199
_doc.onmouseup = function(e) {
200+
var maxHeight = window.innerHeight - wrapper.offsetHeight;
201+
202+
if (mouseY > maxHeight) {
203+
wrapper.style.top = maxHeight + 'px';
204+
} else if (mouseY < 0) {
205+
wrapper.style.top = 0 + 'px';
206+
}
207+
200208
dragging = false;
201209
};
202210

0 commit comments

Comments
 (0)