Commit f1a69722 authored by Jacob Thornton's avatar Jacob Thornton
Browse files

fix drag knob in firefox #7

parent 73f1bcf7
Showing with 3 additions and 4 deletions
+3 -4
......@@ -92,10 +92,9 @@ $(document).ready(function(){
// Copy code blocks in docs
$(".copy-code").focus(function() {
$(this).select();
});
$(".copy-code").mouseup(function(e) {
e.preventDefault();
var el = this;
// push select to event loop for chrome :{o
setTimeout(function () { $(el).select(); }, 1);
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment