We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 372e1a3 + 527e112 commit 9a4c7fbCopy full SHA for 9a4c7fb
1 file changed
Auditor/HTMLCSAuditor.js
@@ -197,6 +197,14 @@ _global.HTMLCSAuditor = new function()
197
};
198
199
_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
208
dragging = false;
209
210
0 commit comments