Skip to content

Commit f1a6972

Browse files
committed
fix drag knob in firefox twbs#7
1 parent 73f1bcf commit f1a6972

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/assets/js/application.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,9 @@ $(document).ready(function(){
9292

9393
// Copy code blocks in docs
9494
$(".copy-code").focus(function() {
95-
$(this).select();
96-
});
97-
$(".copy-code").mouseup(function(e) {
98-
e.preventDefault();
95+
var el = this;
96+
// push select to event loop for chrome :{o
97+
setTimeout(function () { $(el).select(); }, 1);
9998
});
10099

101100

0 commit comments

Comments
 (0)